onMove is the callback that will be called on every mouse move. onMoveEnd is called on mouse up when movement has ended.
This is to set up the listeners for listening to mouse move and mouse up signaling the movement has ended. Please note that these listeners are added at the document.body level. It takes in an event in order to grab inital state.
Returns whether or not if the mouse movement is being tracked.
Calls onMove passed into constructor and updates internal state.
Calls onMoveEnd passed into constructor and updates internal state.
These releases all of the listeners on document.body.
Generated using TypeDoc
Track mouse/touch events for a given element.