is-active.mjs 159 B

123456789
  1. const isDragging = {
  2. x: false,
  3. y: false,
  4. };
  5. function isDragActive() {
  6. return isDragging.x || isDragging.y;
  7. }
  8. export { isDragActive, isDragging };