Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

draggingTool doCancel does not release the mouse

$
0
0

@temp1e wrote:

I'm using draggingTool to start the drag, but because the draggable element must be dropped outside the canvas , I'm trying to cancel the drag and to implement a custom html dragging. The thing is that in this process events hang and are not released until I do another little drag, no matter on which part of the screen (on or away from the canvas). I tried to replace draggingTool without any success. I could not call dragging tool constructor. Other idea that fails was to discard draggingTool and to find a replacement. I looked for a mouse down event that will tell me on which element of gojs is happened, but I could not find that either.

let tool = diagram.toolManager.draggingTool;
// tool.doDeactivate();
tool.doCancel();

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles