mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
0562be67f4
commit
e822d6878b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue