Mouse down event not registered properly when there is no mouse motion
Author: uberyojiCreated Dec 5, 2019Updated Jun 9, 2026
I recently ported the code to a project I am working on the nintendo switch. Since I am using touchscreen, there are no motion message being sent (unless when dragging). Motion occurs only when a touch is inputed.
Seems controls need to be hovered first thru motion before mouse down is processed properly. I tried to debug it a little. I believe the problem occurs in mu_update_control when the context hover id is set.
To reproduce the issue just disable the processing of motion in the sdl message handler. You'll notice you need to click several time to get a proper mouse down.
I'll continue to investigate, let me know if you have some ideas.
Source: rxi/microui