-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Scrollbars and other draggable elements get stuck mouse leaves browser window #4406
Labels
bug
Something is broken
Comments
Perhaps in the current egui, scrolling is only allowed when the mouse pointer is hovering over it. This is related, right? |
Maybe. Currently i definitely can scroll when not hovering the scrollbar. I can only start scrolling when i hover it but i can keep scrolling when my leaves it. |
emilk
added a commit
that referenced
this issue
May 22, 2024
* Closes #3157 If the mouse leaves the canvas when dragging a slider, the slider will still move. --- To support this, I had to revert #4419 Despite that, I fail to reproduce the two issues it claimed to solve: * #4406 may have been solved in another way by this PR * #4418 I cannot reproduce on Mac. If it is still a problem, I think it should be solved by triggering a `PointerEvent::Released` when focus is lost (i.e. on alt-tab), and not on `PointerGone`
hacknus
pushed a commit
to hacknus/egui
that referenced
this issue
Oct 30, 2024
* Closes emilk#4406 * Closes emilk#4418 If `Event::PointerGone` occurs, it is treated as `PointerEvent::Released`.
hacknus
pushed a commit
to hacknus/egui
that referenced
this issue
Oct 30, 2024
* Closes emilk#3157 If the mouse leaves the canvas when dragging a slider, the slider will still move. --- To support this, I had to revert emilk#4419 Despite that, I fail to reproduce the two issues it claimed to solve: * emilk#4406 may have been solved in another way by this PR * emilk#4418 I cannot reproduce on Mac. If it is still a problem, I think it should be solved by triggering a `PointerEvent::Released` when focus is lost (i.e. on alt-tab), and not on `PointerGone`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
This bug is exclusive to wasm.
When dragging a scroll bar and then leaving the browser window with the mouse makes the scrollbar "stuck". It will only be unstuck by clicking into the browser window again, until you click again there will also be no hover effects or any other interaction.
I was able to observe and consistently product this bug on both windows and debian linux.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the scroll bar to treat the mouse leaving the window as releasing the mouse button.
Desktop (please complete the following information):
I tested this on both Debian and Ubuntu Linux as well as Windows in Firefox, Chromium and Chrome, the behavior was the same in every browser.
The problem seems to be exclusive to wasm.
Additional context
When given pointers i would definitely be willing to track down the cause of the problem. It seems to be quite deep as other draggables such as sliders inhibit similar but not as disrupting problems
Thanks for all your hard work and have a great day ::)
The text was updated successfully, but these errors were encountered: