Comments (2)
That's interesting. First of all I suspect I need to round output values to
three decimal places to avoid invalid numbers like that.
I've had a quick play on my iPhone and you need to explicitly set watch to
undefined on the Spring simulation. I'm guessing what it's doing is passing
rotateZ to the internal Watch action instead of Simulate, hence explicitly
removing 'x'
It's not a pretty solution so I'll look into unsetting this automatically.
Thanks for pointing this out.
Also there's something very satisfying about that spring back on a touch
device!
On Sat, 3 Oct 2015 at 20:01, Chris Malven [email protected] wrote:
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=001When the rectangle is dragged, I'm using a track to apply the x value to
rotateZ, then using a simulation to spring back the rotateZ 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 like rotateZ:
"-7.450580596923828e-7deg"Any ideas?
—
Reply to this email directly or view it on GitHub
#79.
from popmotion.
Thanks, @InventingWithMonster, watch: undefined
worked like a charm, though I'd agree that it's a little strange.
And yeah, the spring interaction feels great on a touch device. :-)
from popmotion.
Related Issues (20)
- Are there examples? "Green boxes"? HOT 1
- Animation sequence HOT 1
- 'action' is not exported from 'popmotion' HOT 1
- CDN link maybe not working HOT 1
- How to have more values in short duration? HOT 1
- Allow global override of Framesync loop
- Popmotion: React import { animate } from "popmotion"; fails HOT 2
- Popmotion: Animation duration stretched when using pixi.js Ticker as animation driver HOT 2
- Importing Popmotion via "/dist/popmotion.global.min.js" 404 Issue HOT 2
- Stuttering motion on Chrome and Edge
- popmotion 11.0.3 import not working (missing exports) HOT 4
- 一些建议
- Cannot compile in CRA@5
- primary use error by Vue HOT 2
- mixerFactory is not a function
- Modernize build target and eliminating tslib.
- Popmotion.io footer nav link HOT 1
- Pause and rewind capability HOT 7
- Popmotion: Different content on each Modal
- Is there a lifecycle event that can listen to the completion of each repetition?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from popmotion.