Skip to content

imgui: Disable input event trickling - #1813

Open
squidbus wants to merge 1 commit into
hedge-dev:mainfrom
squidbus:fix-imgui-scroll
Open

squidbus wants to merge 1 commit into
hedge-dev:mainfrom
squidbus:fix-imgui-scroll

Conversation

@squidbus

@squidbus squidbus commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Port from MarathonRecomp. Basically, ImGui will trickle large amounts of input events that come in quickly over multiple frames by default, rather than coalescing them together. However, since we scale and offset mouse position events for the game's viewport vs the actual window area, trickling can cause us to modify the same events multiple times, making ImGui think the mouse position is way off. Disabling trickling fixes the issue.

This can happen on macOS when scrolling in the debug profiler window. The incorrect mouse position makes it think that the window is no longer hovered, so scrolling hitches. I don't believe ImGui input events are used for anything other than debug windows.

This branch is waiting to be deployed

1 waiting deployment
external — 2127b1bf Waiting Nov 28, 2026 by squidbus via authorize #479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant