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

If click started on one element and finished on other it does not work (pointer-events) #368

Open
Ledzz opened this issue Nov 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ledzz
Copy link
Contributor

Ledzz commented Nov 1, 2024

Please see the repro: https://codesandbox.io/p/sandbox/optimistic-buck-k6hfqz

If you click either blue or green square, the click work as intended. If during clicking you slide you pointer on the blue square for some pixels, it still works. But if you do pointerdown on blue, slide to green, and pointerup on green, click does not work. I think it should work cause we didn't left the blue square.

@bbohlender
Copy link
Collaborator

Thanks for raising the issue. Can you show that your described behavior is what happens in html? Just a very simple code pen so I dont have to do it myself right now :)

@Ledzz
Copy link
Contributor Author

Ledzz commented Nov 1, 2024

Yeah sure! Placed html variant near left top corner :)

@bbohlender bbohlender added the bug Something isn't working label Nov 3, 2024
@bbohlender
Copy link
Collaborator

@Ledzz Thanks for providing the example
My plan is to adress this, together with #369 tomorrow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants