Fix scrollregion scrollbar position offset after releasing handle

The scrollregion scrollbar was not being deactivated if the handle is continued to be hovered after releasing it, causing the handle to become offset with the position of the click on the next activation of the handle.
This commit is contained in:
Robert Müller 2024-05-12 13:59:28 +02:00
parent 0562be67f4
commit e822d6878b

View file

@ -179,7 +179,8 @@ void CScrollRegion::End()
m_AnimTargetScrollY = m_ScrollY;
m_AnimTime = 0.0f;
}
else if(Ui()->CheckActiveItem(pId) && !Ui()->MouseButton(0))
if(Ui()->CheckActiveItem(pId) && !Ui()->MouseButton(0))
{
Ui()->SetActiveItem(nullptr);
}