Skip to main content

Bug Tracker

Side navigation

#10188 closed bug (worksforme)

Opened September 01, 2011 10:56PM UTC

Closed September 01, 2011 11:23PM UTC

Last modified September 01, 2011 11:23PM UTC

Wrong value in the first step in .animate() in 1.4.4

Reported by: jack.jia@nokia.com Owned by: jack.jia@nokia.com
Priority: low Milestone: None
Component: effects Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (5)

Changed September 01, 2011 11:05PM UTC by anonymous comment:1

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

Changed September 01, 2011 11:13PM UTC by rwaldron comment:2

component: unfiledeffects
owner: → jack.jia@nokia.com
status: newpending

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.

Changed September 01, 2011 11:22PM UTC by jack.jia@nokia.com comment:3

status: pendingnew

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!

Changed September 01, 2011 11:23PM UTC by rwaldron comment:4

resolution: → worksforme
status: newclosed

Changed September 01, 2011 11:23PM UTC by rwaldron comment:5

priority: undecidedlow