Cancels all current drag operations.
Namespace: MindFusion.Diagramming
File: DiagramView.js
JavaScript Copy Code |
---|
function cancelDrag () |
This method is useful in situations when the current draw operations must be cancelled, for example when starting external drag-and-drop from pointerMove DOM event handlers, or in response to Esc keypress. Multiple operations could be running simultaneously when enableMultiTouch is set to true, and this method cancels them all. Individual operations can be cancelled by calling cancelDrag method of event arguments when handling validation events, such as nodeCreating.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |