Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support isMouseDown? #20

Open
Secretmapper opened this issue Feb 19, 2018 · 2 comments
Open

Support isMouseDown? #20

Secretmapper opened this issue Feb 19, 2018 · 2 comments

Comments

@Secretmapper
Copy link

No description provided.

@ethanselzer
Copy link
Owner

@Secretmapper - Thanks for opening this issue. When you say "isMouseDown" do you mean "is the mouse button being held down", like in a text selection or drag operation?

@Secretmapper
Copy link
Author

Secretmapper commented Feb 25, 2018

I guess it would be similar to "drag operation" yes.

As for use case, I'm planning to use this library for my image annotation library (https://github.com/Secretmapper/react-image-annotation) and isMouseDown would be useful to keep track if the user is trying to create/edit/resize his annotation 'rectangle'.

isActive sort of fits the bill for touch (since touch needs to be "held down" anyway due to the finger needing to be on the screen) but it doesn't apply to mouse as it is isActive by default (and I think isActive is just for active status of the listener?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants