godotengine / godotengine/godot

Area2D reports MouseEntered on mouse scroll, even though covered by a Control

Open
#102,436 3 comments 0 reactions 0 assignees View on GitHub
bug topic:2d topic:physics
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in 4.4 beta2, 4.4 dev4

### System information

Godot v4.4.beta2 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6094) - AMD Ryzen 5 1500X Quad-Core Processor (8 threads)

### Issue description

An Area2D covered up by a Panel (possibly other Control nodes as well) will correctly not report MouseEntered if you mouse over it, however if you also scroll up or down with the mouse wheel it will incorrectly do so.

### Steps to reproduce

In attached MRP mouse over the Area2D that is covered up by a Panel, on using the mouse wheel observe the output in the console printed by a MouseEntered event in area_2d.gd

### Minimal reproduction project (MRP)

[test.zip](https://github.com/user-attachments/files/18663779/test.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached test.zip minimal reproduction and inspect area_2d.gd, especially the MouseEntered output while the Area2D is covered by a Panel. Reproduce the issue by moving over the covered Area2D and scrolling the mouse wheel. Done means the covered Area2D no longer reports MouseEntered from scrolling, while the existing reproduction behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.