Bug Tracker

Modify

Ticket #9474 (closed bug: duplicate)

Opened 2 years ago

Last modified 23 months ago

Calling .stop() in callback freezes animation

Reported by: rtempchin@… Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

Animate an element using .animate() and give it a callback. In the callback function, call .stop(). The element will no longer animate in response to .animate() calls.

Test case:  http://jsfiddle.net/rtempchin/tCWVH/

Also note that if you move .stop() out of the callback, the element will respond to future .animate() calls but will still ignore one immediately after .stop().

Test case:  http://jsfiddle.net/rtempchin/tCWVH/3/

Tested with jQuery 1.6 and 1.6.1 in Chrome (11.0.696.71) for Mac.

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to effects

Confirmed. Not sure what's going on with this one. Some weirdness with the timers.  http://jsfiddle.net/timmywil/tCWVH/7/

comment:2 Changed 2 years ago by timmywil

#8828 is a duplicate of this ticket.

comment:3 Changed 23 months ago by gnarf

  • Status changed from open to closed
  • Resolution set to duplicate

comment:4 Changed 23 months ago by gnarf

Duplicate of #6641.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.