constants.ts 622 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * The power of the friction.
  3. *
  4. * @since 3.0.0
  5. */
  6. export const FRICTION = 5;
  7. /**
  8. * If the user stops dragging for this duration with keeping the pointer down, updates the base coord and time.
  9. *
  10. * @since 3.0.0
  11. */
  12. export const LOG_INTERVAL = 50;
  13. /**
  14. * Start events for dragging.
  15. *
  16. * @since 3.0.0
  17. */
  18. export const POINTER_DOWN_EVENTS = 'touchstart mousedown';
  19. /**
  20. * Update events for dragging.
  21. *
  22. * @since 3.0.0
  23. */
  24. export const POINTER_MOVE_EVENTS = 'touchmove mousemove';
  25. /**
  26. * End events for dragging.
  27. *
  28. * @since 3.0.0
  29. */
  30. export const POINTER_UP_EVENTS = 'touchend touchcancel mouseup mouseleave';