Bug Tracker

Modify

Ticket #1597 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 6 years ago by jsorgalla

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.

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [3299].

comment:3 Changed 6 years ago by john

  • Component changed from core to fx

comment:4 Changed 6 years ago by john

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:5 Changed 6 years ago by john

  • Status changed from reopened to closed
  • Resolution set to worksforme

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.