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

transform-rotation-BUG in IE8/VML #459

Open
orhgiub10 opened this issue Nov 18, 2011 · 1 comment
Open

transform-rotation-BUG in IE8/VML #459

orhgiub10 opened this issue Nov 18, 2011 · 1 comment

Comments

@orhgiub10
Copy link

Hello.

I found a very curious rotation bug in ie8:

If I rotate an image element step by step, the output jump in any step somewhere else on x and/or y-axis.

e.g. http://jsfiddle.net/zpJ38/

How we can fix that?

@caravaneer
Copy link

VML rotation attribute, as I know, supports only integer values.
Try to change this line:
s.rotation = deg * (sx * sy < 0 ? -1 : 1);
to this:
s.rotation = Math.round(deg * (sx * sy < 0 ? -1 : 1));
in the setCoords function.

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

2 participants