mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
only consume double click if item hot
This commit is contained in:
parent
c495d4b327
commit
c214918977
|
@ -1195,7 +1195,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
|
||||
bool Activated = false;
|
||||
|
||||
if(m_EnterPressed || (Input()->MouseDoubleClick() && UI()->HotItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||
if(m_EnterPressed || (UI()->HotItem() == m_lDemos[m_DemolistSelectedIndex].m_aName && Input()->MouseDoubleClick()))
|
||||
{
|
||||
UI()->SetActiveItem(0);
|
||||
Activated = true;
|
||||
|
|
Loading…
Reference in a new issue