Skip to content
Discussion options

You must be logged in to vote

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 is isMouseDrag() etc. and console.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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Abhay0294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants