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

Brush does not detect mouse up when releasing outside Bar element #613

Closed
maryschmidt opened this issue Jan 27, 2020 · 5 comments
Closed

Comments

@maryschmidt
Copy link
Contributor

Hey, thanks for adding the Brush tool!

When creating a BrushSelection, the mouseUp event is not detected outside of the Bar. I would suggest adding a mouseUp event on the DOM and if dragging is true, behave like mouseUp happened on the Bar.

@williaster
Copy link
Collaborator

Hey @maryschmidt 👋 thanks for checking out vx! I agree proper detection of a mouseUp/onTouchEnd event would improve the UX of the component (which I would say is still very much a v0).

I likely will not have the bandwidth to add this feature very soon as I'm focusing on improved docs and other v1 efforts, but I would be happy to review a PR if you / anyone is interested in adding it!

@maryschmidt
Copy link
Contributor Author

#618 If you can take a look at my PR

@joearasin
Copy link

@williaster It looks like in #667 the window event listeners added in #618 were removed. Was that intentional?

@williaster
Copy link
Collaborator

williaster commented May 8, 2020

@joearasin yes, unfortunately when I actually tested the changes made in #618 , they did not work and so I removed them when also fixing the initialBrushPosition logic (which is what #618 turned into). So, still need a working solution for this issue.

I left a comment in #667 to document why they were removed.

@hshoff
Copy link
Member

hshoff commented May 24, 2024

Was fixed in #1164 which added a useWindowMoveEvents boolean prop

@hshoff hshoff closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants