Ticket #10188 (closed bug: worksforme)
Wrong value in the first step in .animate() in 1.4.4
| Reported by: | jack.jia@… | Owned by: | jack.jia@… |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | effects | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I am animating a list of images like this: $(element).animate({
left: left + 'px' },{ duration: 400, easing: 'linear', queue: false, complete: snap, step: function(now, fx) { for debug console.log('>>>>>>>'+($(this).position().left)); }
});
The element is like this: <div class="myscrollList" style="position: absolute; display: inline; top: 0px; left: -10680.7px; width: 14855px; height: 100%;">
The bug is sometimes the left value (which should be between -10680.7px and -11680.7px) is set to 0 in the first step, and therefore make the whole animation wrong and unexpected images flipped through.
Change History
comment:2 Changed 21 months ago by rwaldron
- Owner set to jack.jia@…
- Status changed from new to pending
- Component changed from unfiled to effects
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.
comment:3 Changed 21 months ago by jack.jia@…
- Status changed from pending to new
Test with 1.6.2 and the bug doesn't show. So this is only for 1.4.4. Please close the bug then.
Thank you very much!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

If I change to use jquery 1.0 then the bug will *not* be observed.