Is there a way to know whether a node in the graph has been clicked or right click?? Right now I am adding a Listener to the selection model but using mxChange will not recognize the source of the event.

asked 08 Apr '11, 07:34

sednus's gravatar image

sednus
1015
accept rate: 0%

edited 08 Apr '11, 09:07


See this

link

answered 08 Apr '11, 13:02

eisbaw's gravatar image

eisbaw
367112
accept rate: 31%

I saw that, it's just that I want to be able to specify whether if the change ocurring in the graph comes from a left or right click

(11 Apr '11, 06:18) sednus

"specify" should be "detect", right?\nTake a look again at the link again (hint: use e.getButton() to detect left or right click)

(11 Apr '11, 07:46) eisbaw
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×29

Asked: 08 Apr '11, 07:34

Seen: 3,277 times

Last updated: 11 Apr '11, 07:46