only consume double click if item hot

This commit is contained in:
Robert Müller 2022-01-16 12:40:00 +01:00
parent c495d4b327
commit c214918977

View file

@ -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;