UNPKG

@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration

Version:

An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop

17 lines (16 loc) 447 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cancelPointerDrag = cancelPointerDrag; /** * Cancels the active drag, if there is one. * * This only affects pdnd's tracking, not the browser's dragging. * * This means if you drag out of the browser and back in, * an external adapter could pick it up as a new drag. */ function cancelPointerDrag() { window.dispatchEvent(new DragEvent('dragend')); }