Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
Other
9.06k stars 542 forks source link

MacOS Trackpad fixes in SDL demos #553

Open cblc opened 1 year ago

cblc commented 1 year ago

Fixes https://github.com/Immediate-Mode-UI/Nuklear/issues/494

RobLoach commented 12 months ago

This seems like an improper way to "fix" the issue here. SDL_PollEvent() is expected to loop through every event, and when we are breaking from the loop, it's possible we'll lose pushed event triggers in the event queue.