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

Area2D+CollisionShape2D: mouse_entered signal received when the cursor moves from Area2D into a Panel #57588

Closed
Sauermann opened this issue Feb 3, 2022 · 9 comments

Comments

@Sauermann
Copy link
Contributor

Godot version

v4.0.alpha.custom_build [ca42bfb]

System information

Debian 11, Vulkan

Issue description

Moving the mouse from an Area2D + CollisionShape2D to a Panel causes the Area2D to receive the following three signals:

  1. mouse_exited
  2. mouse_entered
  3. mouse_exited

I would expect, that an Area2D node would receive only a single mouse_exited signal in this situation.

Steps to reproduce

  1. Load and start MRP
  2. Move Mouse cursor to the right side of the window, then into the Area2D (clouds)
  3. Move mouse cursor from Area2D into the Panel (left side)
  4. Console shows output from multiple signals

Minimal reproduction project

BugCollisionShape.zip

@Calinou
Copy link
Member

Calinou commented Feb 3, 2022

@Sauermann Can you reproduce this on 3.4.2?

@Sauermann
Copy link
Contributor Author

Yes, bug is also there.
Here is a reproduction project for v3.4.2.stable.official [45eaa2d]: BugCollisionShape3.zip

@KoBeWi
Copy link
Member

KoBeWi commented Apr 10, 2022

Can't reproduce in alpha 6
godot4_llniAbcBx5
Not sure if testing correctly.

@Sauermann
Copy link
Contributor Author

I just tried and can reproduce this issue in current master v4.0.alpha.custom_build [83d2673].

BugCollisionShape.mp4

@KoBeWi
Copy link
Member

KoBeWi commented Apr 10, 2022

How come are we getting different results? I can't reproduce this at all. Is it system specific or what? (I'm using Windows 10)

@Sauermann
Copy link
Contributor Author

I can reproduce this issue on Windows 10 with alpha 1 and alpha 4 and the given MRP.
Maybe it has to do with the speed of the mouse cursor? (I move the mouse-cursor faster than you)

@KoBeWi
Copy link
Member

KoBeWi commented Apr 10, 2022

Ok I managed to reproduce it a few times, but it seems random, idk.

@Sauermann
Copy link
Contributor Author

As far as I can tell, it is related to threads, so a bit of randomness is to be expected.

@YuriSizov YuriSizov moved this from To Assess to In Progress in 4.x Priority Issues Sep 12, 2022
@Sauermann
Copy link
Contributor Author

Sauermann commented Oct 6, 2022

In the 3.x branch, this got fixed between v3.4.4 and v3.5.1
In the 4.0 branch, this got fixed by #62665, so it should appear again when using use_accumulated_input = false.

Closing this issue.

Repository owner moved this from In Progress to Done in 4.x Priority Issues Oct 6, 2022
@akien-mga akien-mga modified the milestones: 4.0, 3.5 Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants