mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
parent
7d0774a00d
commit
c6c8f2eab6
|
@ -489,7 +489,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
|
|||
}
|
||||
}
|
||||
|
||||
if(Inside)
|
||||
if(Inside && !Ui()->MouseButton(0))
|
||||
Ui()->SetHotItem(pId);
|
||||
|
||||
if(Ui()->HotItem() == pId)
|
||||
|
|
Loading…
Reference in a new issue