Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to animate top/left without modifying the offset moves the offset to zero #152

Closed
leup opened this issue Mar 16, 2014 · 5 comments
Closed

Comments

@leup
Copy link

leup commented Mar 16, 2014

Look at: http://jsfiddle.net/uFsV7/

First move is ok.
Second move is not.
The top property is reset to zero

Problem seems to with this:
https://github.com/benbarnett/jQuery-Animate-Enhanced/blob/master/scripts/src/jquery.animate-enhanced.js#L438

When the property is equal to the new value, the translation offset is equal to zero. and then, problem begins as the translation offset becomes the value. In the end, the property equals zero (translation = 0 - property value => proprerty = property - property = 0).

Well, I'm not sure of my explanation, but I'm sure of the result.

It seems to me that this code piece has been added in:

724d3de#diff-c5d16b22fce6d2f734ffa32b7d35384bR110

and then there is this commit, after:

025da57

that should have revert the first one, but I may be wrong.

@Aurelain
Copy link

+1

@wow-apps
Copy link

same problem

@Snesi
Copy link

Snesi commented May 7, 2014

Me too.

@nicobot
Copy link

nicobot commented Sep 22, 2014

+1

@leup
Copy link
Author

leup commented Jul 27, 2022

Closed by #166

@leup leup closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants