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: | sofa@morgenstille.at | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.5 |
Component: | effects | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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
Changed December 13, 2010 09:24AM UTC by comment:2
an example is here: http://jsfiddle.net/GBLqa/
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 comment:4
resolution: | → duplicate |
---|---|
status: | new → closed |
Changed January 10, 2011 01:12PM UTC by comment:6
component: | unfiled → effects |
---|---|
milestone: | 1.6 → 1.5 |
priority: | undecided → low |
I just tested it and it was introduced with jquery. 1.4.3 it worked up to this version.