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

Mouse up events are ignored on native if cursor moves to another window in between. #272

Closed
jakobhellermann opened this issue Mar 28, 2024 · 2 comments · Fixed by #273
Closed

Comments

@jakobhellermann
Copy link
Contributor

When you mousedown on a window, drag outside of it and release, the press state in egui is cleared correctly (at least on native, in browsers this doesn't seem to work #101).

But when you mousedown on window A, drag over to window B, release, then the state is kept until you click in window A again.

Here's an example, printing

println!("Window 1 (or 2) {:?}", ui.input(|input| input.pointer.press_origin()));

in two_windows.rs:

2024-03-28.14-10-50.mp4
@vladbat00
Copy link
Owner

Hey! Thanks for the report. I'll check if we can fix this

@vladbat00
Copy link
Owner

#273 should fix this

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

Successfully merging a pull request may close this issue.

2 participants