Prevent dragging in Joint JS
Posted
by
user3607705
on Stack Overflow
See other posts from Stack Overflow
or by user3607705
Published on 2014-05-27T09:22:52Z
Indexed on
2014/05/27
9:24 UTC
Read the original article
Hit count: 510
I am working on JointJS API. However I want to prevent the elements from being movable from their original positions. Can you suggest me some feature of JointJS or any feature of CSS in general, which I could use to make my object immovable.
I can't use interactive: false option on the paper or paper.$el.css('pointer-events', 'none'); because I need to have highlighting features when mouse hovers over the element.
Please suggest a way that disables movement of elements while allowing other features.
© Stack Overflow or respective owner