Skip to main content

Bug Tracker

Side navigation

#7760 closed bug (duplicate)

Opened December 13, 2010 09:16AM UTC

Closed December 13, 2010 06:45PM UTC

Last modified January 10, 2011 01:12PM UTC

animate left to values over -11000px

Reported by: Owned by:
Priority: low Milestone: 1.5
Component: effects Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

when i use animate like $('#content').animate({left:-1000}); and the value of left is already beneath -10000 it hops to -1000.

Attachments (0)
Change History (6)

Changed December 13, 2010 09:21AM UTC by comment:1

I just tested it and it was introduced with jquery. 1.4.3 it worked up to this version.

Changed December 13, 2010 09:24AM UTC by comment:2

an example is here:

Changed December 13, 2010 10:47AM UTC by comment:3

Here's the reason:

Animate uses e.cur() to get it's start value. That will return 0 if a value smaller than -10000 is used.

Line 6623 of jquery 1.4.4:

return r && r > -10000 ? r : 0;

My current solution is to just change that value to something smaller than I know I will be using.

Changed December 13, 2010 06:45PM UTC by jitter comment:4

resolution: → duplicate
status: newclosed

Changed December 13, 2010 06:45PM UTC by jitter comment:5

Duplicate of #7193.

Changed January 10, 2011 01:12PM UTC by jitter comment:6

component: unfiledeffects
milestone: 1.61.5
priority: undecidedlow