material-motion-js
material-motion-js copied to clipboard
Reusable gestural interactions in JavaScript. In development.
Right now, there's not an easy way to get direction from a velocity - you have to drag an element by a certain distance. We should support this. Maybe something...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species This would clean up/DRY out the codebase (proxies is a bit of a hack), and provide a possible extension point for 3rd parties to create new derivations of MotionObservable....
Opening the settings pane on iOS breaks the drag. It's presumably sending touchcancel.
AMP foregoes pointer events entirely because iframe ad containers eat them. This makes the experience crappy in the general case (dragging images) to make the occasional case (dragging ads) possible....
There's a maddening property of PointerEvents: touch only triggers one `move` unless you set `touch-action`. I know this and it still bites me occasionally - I imagine it's even more...
Our unit tests currently use a very simple `MockObserver`, which essentially turns an observer inside-out so its `next` method may be called by unit tests. Unfortunately, this presumes that there...
Here's a library that generates CSS keyframes using react-motion's interpolator: https://github.com/codepunkt/css-spring @jverkoey has mentioned before that react-motion's algorithm isn't accurate. We ought to be able to build something similar with...
Should just be ReactiveProperty with a getter/setter for `value`.
https://material-motion.github.io/material-motion/starmap/specifications/interactions/Scalable
https://material-motion.github.io/material-motion/starmap/specifications/interactions/Rotatable