I need to define mouse click event for my each cell. I used cell:pointerup
event; but this event is triggered when I change positions of cells too. How can I differentiate these 2 events?
Thanks in advance.
I need to define mouse click event for my each cell. I used cell:pointerup
event; but this event is triggered when I change positions of cells too. How can I differentiate these 2 events?
Thanks in advance.
What you can do is to create a custom element view and distinct click from dragging by checking whether a
pointermove
event was triggered betweenpointerdown
andpointerup
events.And then tell the
joint.dia.Paper
to use the view.A fiddle can be found here.