Skip to content

Commit 45e4744

Browse files
Mirror H scrollbar visibility guard in Panel::doUpdate reset branch
Robosturm review feedback on PR #1959: the V-axis branch was tightened to reset content X only when the scrollbar is hidden, but the H-axis branch kept a bare else that snapped Y to 0 every frame the scrollbar was visible but div<=0. Apply the same !getVisible() guard to H so both axes behave symmetrically.
1 parent 95964d8 commit 45e4744

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

objects/base/panel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void Panel::doUpdate(const oxygine::UpdateState& us)
150150
m_HScrollbar->setScrollvalue(value);
151151
}
152152
}
153-
else
153+
else if (!m_HScrollbar->getVisible())
154154
{
155155
m_ContentRect->setY(0);
156156
}

0 commit comments

Comments
 (0)