Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Right click on connections #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How can I bind 'rightclick' to the connection? I am using following code to to 
get the click events.

connection.bind('click', function(con) {alert("click on connection");});
this is called for left & right mouse clicks.

How can we get event details? I wanted to know if it is left/middle/right and 
also keyboard key if any if pressed.

can we have  a bind method like below? Where event is browser event.

connection.bind('click', function(con, event) {alert("click on connection");});

Original issue reported on code.google.com by rkkil...@gmail.com on 10 Apr 2011 at 6:21

GoogleCodeExporter commented 8 years ago
i've updated the event callback signature to supply this now - the signature of 
the method is what you asked for:

connection.bind('click', function(con, event) {alert("click on connection");});

Original comment by simon.po...@gmail.com on 10 Apr 2011 at 9:48

GoogleCodeExporter commented 8 years ago
appreciate your quick response. It works now. Thanks a lot.

Original comment by rkkil...@gmail.com on 11 Apr 2011 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 2 Jun 2011 at 4:27