jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.82k stars 2.06k forks source link

mxEvent.isLeftMouseButton(); dont work #485

Closed tomerdad closed 4 years ago

tomerdad commented 4 years ago

Some of the mxEvent don't work I tried to use this but after many time that I search On the internet, I found that this event don't work what I can do to fix this? (it happens to mxEvent.isRightMouseButton() and also to the middle button maybe to more)

PrudhviMadasu commented 4 years ago

As I didnt see code, assuming evt is null Try calling event inside addListener

graph.addListener(mxEvent.click, function (sender, evt) { mxEvent.isRightMouseButton(evt) }