Search
DiagramView.cancelDrag Method
See Also
 





Cancels all current drag operations.

Namespace: MindFusion.Diagramming
File: DiagramView.js

 Syntax

JavaScript  Copy Code

function cancelDrag ()

 Remarks

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.

 See Also