Fix demo seekbar being activated by held button press

The seekbar is immediately activated if the mouse button is held while moving the mouse over the seekbar, which is inconsistent with the general `DoButtonLogic` behavior. This is problematic on Android, where the first mouse button is always pressed while the mouse is being moved, causing the seekbar to steal focus immediately when hovered.
This commit is contained in:
Robert Müller 2024-05-11 12:23:52 +02:00
parent 7d0774a00d
commit c6c8f2eab6

View file

@ -489,7 +489,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
}
}
if(Inside)
if(Inside && !Ui()->MouseButton(0))
Ui()->SetHotItem(pId);
if(Ui()->HotItem() == pId)