Skip to main content

Bug Tracker

Side navigation

#1597 closed bug (worksforme)

Opened September 12, 2007 02:38AM UTC

Closed September 15, 2007 02:42AM UTC

animation adding up incorrect with minus sign

Reported by: bmsterling Owned by:
Priority: major Milestone: 1.2.1
Component: effects Version: 1.2
Keywords: animation, minus sign Cc:
Blocked by: Blocking:
Description

Url for testing:

http://benjaminsterling.com/experiments/bug1.2/animationbug.htm

In the example url, when you do:

$('#moveRightDown').click(function(){
	$('.box').animate({left:400,top:400},100);
	return false;
});

The box will move to left 400 and top 400 when you click the button.

But when you do the following:

$('#moveLeftUp').click(function(){
	$('.box').animate({left:-100,top:-100},100);
	return false;
});

The box will move back 100 left, and 100 top each time you click the button. It looks like the adding the minus sign is causing the issue.

Attachments (0)
Change History (5)

Changed September 12, 2007 12:47PM UTC by jsorgalla comment:1

I've discovered the same problem with my jCarousel plugin. Since 1.2, jQuery is assuming a relative animation with leading +/- signs in the value.

So, it isn't any longer possible to animate left/top to an absolute negative position.

Changed September 15, 2007 02:41AM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN rev [3299].

Changed September 15, 2007 02:42AM UTC by john comment:3

component: corefx

Changed September 15, 2007 02:42AM UTC by john comment:4

resolution: fixed
status: closedreopened

Changed September 15, 2007 02:42AM UTC by john comment:5

resolution: → worksforme
status: reopenedclosed