Skip to content

useMove: dragging and releasing outside iframe doesn't end drag #1406

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

Open
devongovett opened this issue Dec 19, 2020 · 1 comment
Open

useMove: dragging and releasing outside iframe doesn't end drag #1406

devongovett opened this issue Dec 19, 2020 · 1 comment

Comments

@devongovett
Copy link
Member

🐛 Bug Report

When dragging outside an iframe, drag events stop being received. If you release your drag while outside the iframe, and then move your mouse back over it, the slider will continue to move as if you were pressing the mouse since it is unaware that the mouse was released.

🤔 Expected Behavior

Drag events should continue being received when dragging outside the iframe, just like when there is no iframe.

💁 Possible Solution

This is potentially fixed by not calling preventDefault on mouse down according to this: https://taye.me/blog/tips/2015/11/16/mouse-drag-outside-iframe/. Not sure what other issues this might introduce though. Investigate and find out. It was originally added here: #1106 (comment).

🧢 Your Company/Team

RSP

@cedeber
Copy link
Contributor

cedeber commented Jul 21, 2022

I have the same kind of bug, although related to Firefox only. When you drag a slider thumb and release the mouse above a disabled button, then the slider will also continue to move.
It's maybe fortunate that it works on Chrome then ;-)

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

2 participants