Skip to content
Browse files

Animate should absolutely position if a number is passed (Ex: -700)

  • Loading branch information...
1 parent e22336e commit e4a62e4ec60a1dc36274e5706b46faadf455bd16 Sean Catchpole committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fx.js
View
2 src/fx.js
@@ -111,7 +111,7 @@ jQuery.fn.extend({
}
// If a +/- token was provided, we're doing a relative animation
- if ( parts[1] )
+ if ( parts[1] && typeof val != "number" )
end = ((parts[1] == "-" ? -1 : 1) * end) + start;
e.custom( start, end, unit );

0 comments on commit e4a62e4

Please sign in to comment.
Something went wrong with that request. Please try again.