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_exited event/notification called after mouse button released in Control #19808

Closed
HeartoLazor opened this issue Jun 27, 2018 · 3 comments · Fixed by #59555
Closed

mouse_exited event/notification called after mouse button released in Control #19808

HeartoLazor opened this issue Jun 27, 2018 · 3 comments · Fixed by #59555
Milestone

Comments

@HeartoLazor
Copy link
Contributor

Godot version:
Godot 3.0.4

OS/device including version:
Windows 10

Issue description:
When I hold a mouse button inside a control and move outside, the mouse_exited event is called after the button release.
I expect the event after the mouse is outside of the Control area, not after the release of the button.
If I don't hold the button, works as intended.
Here is a video where the half show the weird behavior
https://gfycat.com/IllustriousSoupyHadrosaurus
look at the mouse when it's pressed / released and the console output.

Steps to reproduce:

  1. Create a control with stop filter. Register mouse_entered and mouse_exited events.
  2. Hold Left or Right click inside the control.
  3. Move the mouse outside and the mouse_exited event is ignored

Minimal reproduction project:
mouse_exited_bug.zip

@akien-mga
Copy link
Member

Is this still reproducible in the current master branch?

@HeartoLazor
Copy link
Contributor Author

Still happening in master branch (build.f32c826) compiled today

@akien-mga
Copy link
Member

This seems still reproducible in current master / 4.0 alpha 5.
Here's the MRP updated for 4.0: mouse_exited_bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment