material-motion-js icon indicating copy to clipboard operation
material-motion-js copied to clipboard

Add warning if Draggable/Tossable don't have styleStreams connected

Open appsforartists opened this issue 6 years ago • 0 comments

A new user might presumably do this:

const draggable = new Draggable(pointerEvents);
const spring = new Point2DSpring();
const tossable = new Tossable({ draggable, spring });

and wonder why nothing is happening. Perhaps interactions that take user input should throw warnings if their output isn't being used (at least in a dev mode).

appsforartists avatar Jul 25 '18 00:07 appsforartists