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?
What you are asking for is impossible as long as you want single click events to happen promptly, rather than waiting until a double click might have happened and then deciding to raise the event.
But that reasoning also tells you the solution to your problem: have your click event handler wait until a double click has not happened before deciding to proceed.
Please check above code pen example which contains GoJs basic example. In this please double click Alpha node OR any other node. It will trigger double click event first and then after 500 milliseconds it will trigger code inside setTimeout .
Your code is missing setting myLastClick = e.timestamp in your doubleClick event handler. That is required in order for the click event handler to recognize that a doubleClick happened since the click event.