-
Hi, My requirement is as follows:
This is just the R&D for implementing the custom functionality on the draggability of the node.
}` It is hitting on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Abhay0294, you can register a custom mouse listener, similar to how it is done e.g. in this module. The mouse listener you register should be a subclass of If you want to be able to enable and disable your mouse tool easily, you can wrap it into a tool, similar to how it is done, e.g. for the Marquee Tool. Hope that helps! |
Beta Was this translation helpful? Give feedback.
Hi @Abhay0294,
you can register a custom mouse listener, similar to how it is done e.g. in this module. The mouse listener you register should be a subclass of
DragAwareMouseListener
and can then overwrite e.g.mouseMove()
and ask whether it isisMouseDrag()
etc. andconsole.log
in this overwritten method.If you want to be able to enable and disable your mouse tool easily, you can wrap it into a tool, similar to how it is done, e.g. for the Marquee Tool.
Hope that helps!