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

Node single click interrupts double click

$
0
0

@jcaruso wrote:

My application requires that a user can single click and double click on a single node. Each click type provides different functionality. When I double click on the node both functions (single and double) are executed. When doubling clicking on a node I want only doubleClick function to execute. Any suggestions please?

Here’s the snippet.

    $(gojs.Node, 'Spot',
      {
        click: function(e, obj) {
           console.log("Single Click");
        }
        doubleClick(e,obj) {
           console.log("Double Click");
        }
      },

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles