12345678910111213141516171819202122232425262728293031323334 |
- /**
- * The power of the friction.
- *
- * @since 3.0.0
- */
- export const FRICTION = 5;
- /**
- * If the user stops dragging for this duration with keeping the pointer down, updates the base coord and time.
- *
- * @since 3.0.0
- */
- export const LOG_INTERVAL = 50;
- /**
- * Start events for dragging.
- *
- * @since 3.0.0
- */
- export const POINTER_DOWN_EVENTS = 'touchstart mousedown';
- /**
- * Update events for dragging.
- *
- * @since 3.0.0
- */
- export const POINTER_MOVE_EVENTS = 'touchmove mousemove';
- /**
- * End events for dragging.
- *
- * @since 3.0.0
- */
- export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup mouseleave';
|