From 0ef98fcecb933e43527765e9245cf7967596273c Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Mon, 5 Nov 2018 16:12:18 +0100 Subject: [PATCH] Update README.md --- guides/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/README.md b/guides/README.md index 46f593209..f11560246 100644 --- a/guides/README.md +++ b/guides/README.md @@ -98,8 +98,10 @@ node.onDrawForeground = function(canvas, ctx) You can also grab events from the mouse in case your node has some sort of special interactivity. +The second parameter is the position in node coordinates, where 0,0 represents the top-left corner of the node content (below the title). + ```js -node.onMouseDown = function( event, canvas_pos, graphcanvas ) +node.onMouseDown = function( event, pos, graphcanvas ) { return true; //return true is the event was used by your node, to block other behaviours }