PixelsCommander / Propeller

JavaScript library to rotate elements with mouse or touch gestures. Supports inertia and stepwise rotation. Optimized for better performance.
http://pixelscommander.com/polygon/propeller/
409 stars 58 forks source link

onRotate reports 320+ degrees as negative number until rises to 0 degrees #5

Closed mjimeyg closed 10 years ago

mjimeyg commented 10 years ago

As the title says, once the reported angle reaches the 300's it suddenly jumps all the way back down to around -60. It then rises until it has fully rotated and reached 0.

You can see the behaviour here: http://www.marvel-timeline.com/spin.html

screen shot 2014-06-22 at 15 55 21

The code is all viewable by accessing the source of the page. Is there a setting I am missing or a style?

PixelsCommander commented 10 years ago

Thank you for clean report. Fixed.

2014-06-22 16:57 GMT+02:00 mjimeyg notifications@github.com:

As the title says, once the reported angle reaches the 300's it suddenly jumps all the way back down to around -60. It then rises until it has fully rotated and reached 0.

You can see the behaviour here: http://www.marvel-timeline.com/spin.html

[image: screen shot 2014-06-22 at 15 55 21] https://cloud.githubusercontent.com/assets/1776863/3351765/594e2126-fa1d-11e3-903e-481318d8f50f.png

The code is all viewable by accessing the source of the page. Is there a setting I am missing or a style?

— Reply to this email directly or view it on GitHub https://github.com/PixelsCommander/Propeller/issues/5.