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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |