How to use the interactjs.stop function in interactjs

To help you get started, we’ve selected a few interactjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tom-s / react-drag-sortable / src / index.js View on Github external
const ignoreNoDrag = fun => event => {
      const mouseElement = document.elementFromPoint(event.clientX, event.clientY)
      if(mouseElement && !mouseElement.classList.contains('no-drag')) {
        fun(event)
      } else {
        interact.stop(event)
      }
    }
    interact(draggableChildrenSelector).draggable({

interactjs

Drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)

MIT
Latest version published 9 months ago

Package Health Score

69 / 100
Full package analysis