Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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({