jo-grabevents
v1.1.1
Published
Detect touch and click event like drag grab and drop
Downloads
5
Readme
Jo - Grab Events
Sample usage jo-grabevents.surge.sh
Installation and usage
Installation
yarn add jo-grabevents
Usage
import OnGrab from 'jo-grabevents';
OnGrab(document, {
// safe.x = 20,
// safe.y = 20,
// onDragTop,
// onDragBottom,
// onDragLeft,
// onDragRight,
// onGrab,
// onDrag,
// onDrop,
// onDropTop,
// onDropBottom,
// onDropLeft,
// onDropRight
});