godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.88k stars 20.15k forks source link

Left click not working correctly after scroll and click outside PopupMenu #96008

Open Giganzo opened 3 weeks ago

Giganzo commented 3 weeks ago

Tested versions

Godot v4.3.stable Godot v4.1.2.stable

System information

Fedora Linux 39 (KDE Plasma) - X11 - Vulkan (Forward+)

Issue description

Left click not working correctly after scroll and click outside PopupMenu. Hover works.

Screencast_20240823_223826.webm

If you right click again and then click outside without scrolling first it goes back to normal. Or if you use scroll wheel up/down again it also goes back to normal.

Could not recreate this issue on Windows or with single window mode on

Steps to reproduce

Open a PopupMenu Scroll outside the popup and then click outside Try to click on any other control in the editor

Minimal reproduction project (MRP)

N/A

Hilderin commented 2 weeks ago

I'm able to reproduce on Godot v4.3.stable - Ubuntu 23.10 23.10 - Wayland - GLES3 (Compatibility) - Mesa Intel(R) Graphics (ADL-N) - Intel(R) N100 (4 Threads)

To reproduce, I need to use the mouse wheel on the popup menu and outside the popup menu before trying to click elsewhere.

This PR seems to fix this problem: #95044 I tried with the artifact of the PR, if you want to test it @Giganzo: https://github.com/godotengine/godot/actions/runs/10518622500/artifacts/1845227344

Giganzo commented 2 weeks ago

Yeah, seems like it fixes the issue