Fixed double-click not working

This commit is contained in:
smallmodel 2023-07-29 19:41:29 +02:00
parent 9df0c023ed
commit ea3c48af02
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -225,7 +225,7 @@ void UIListCtrl::MousePressed
&& fabs(m_clickState.point.x - p.x) <= 2.0
&& fabs(m_clickState.point.y - p.y) <= 2.0)
{
Event newev;
Event newev(EV_UIListBase_ItemDoubleClicked);
newev.AddInteger(m_currentItem);
SendSignal(newev);
m_clickState.time = 0;