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

diagram.currentCursor not behaving as expected

$
0
0

@turnert wrote:

When setting the current cursor in a tool override:

this.diagram.toolManager.panningTool.doActivate = function() {
    go.PanningTool.prototype.doActivate.call(this);
    this.diagram.currentCursor = "move";
}

this.diagram.toolManager.panningTool.doDeactivate = function() {
    go.PanningTool.prototype.doDeactivate.call(this);
    this.diagram.currentCursor = "";
}

I would expect the cursor to change as soon as the tool activates. However, the cursor only changes once the action is finished (after left click is released, even), but before the mouse moves again.

Am I don't something incorrectly?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles