godotengine / godotengine/godot
Windows build doesn't recognize mouse scroll event in ScrollContainer
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- tested in 4.2.1
### System information
Windows 11 - Godot 4.2.1.stable
### Issue description
If I enable touch emulation in the project settings, the _on_scroll_container_scroll_started() and _on_scroll_container_scroll_ended() are correctly fired when I swipe the element.
But when I use the mouse scroll wheel to scroll the element, the element is correctly scrolled, but both events are NOT fired.
### Steps to reproduce
See attached project:
"Scroll started" and "Scroll ended" is displayed when the element is swiped (via mouse touch emulation), but it is not displayed when the scroll wheel is used.
### Minimal reproduction project (MRP)
[Test.zip](https://github.com/godotengine/godot/files/14160196/Test.zip)
Contributor guide
Research direction
Start with the attached Test.zip reproduction and the ScrollContainer handling behind _on_scroll_container_scroll_started() and _on_scroll_container_scroll_ended(). Compare the touch-emulation and mouse-wheel paths on Windows; done means both events are emitted when the element is scrolled with the mouse wheel as well as when it is swiped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- godot
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100