-
Notifications
You must be signed in to change notification settings - Fork 663
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
rotateZ simulation animates invalid values #79
Comments
That's interesting. First of all I suspect I need to round output values to I've had a quick play on my iPhone and you need to explicitly set watch to It's not a pretty solution so I'll look into unsetting this automatically. Also there's something very satisfying about that spring back on a touch On Sat, 3 Oct 2015 at 20:01, Chris Malven notifications@github.com wrote:
|
Thanks, @InventingWithMonster, And yeah, the spring interaction feels great on a touch device. :-) |
This could be a bug and it could just be a misunderstanding of pop motion on my part.
I've put together a simple test case to demonstrate the issue here: http://codepen.io/cmalven/pen/dYvevW?editors=001
When the rectangle is dragged, I'm using a track to apply the
x
value torotateZ
, then using a simulation to spring back therotateZ
when the mouse is released.The x-based rotation on drag works fine, but when I release the mouse button the
rotateZ
value just snaps back into place without applying the spring simulation.Examining the
rotateZ
values generated during the simulation suggest why this might not be working: they quickly become invalid values likerotateZ: "-7.450580596923828e-7deg"
Any ideas?
The text was updated successfully, but these errors were encountered: