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

Changing mouse movement from drag to draw a new link

$
0
0

@ahmetgundogdu wrote:

Hi, how to connect the start of a drawing process to a key.
My nodes is " fromPort:go.Spot.AllSides", "toPort:go.Spot.AllSides",
It is a bit troublesome to start drawing in this situation.

When dragging starts, press a key --> shift
for example:

goJSDefaultMovingNodeFunc(event,node){
if(event.pressKey==shift)
{
//start link draw func..
}
else
..move

}
i can ovverride default move function and start linkingTool

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6971

Trending Articles