1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Make sure scrollbar listeners are updated in Viewport::updateVisibleArea()

This commit is contained in:
ed 2019-11-29 10:59:40 +00:00
parent e095248d6d
commit 5b65b33280

View file

@ -408,7 +408,6 @@ void Viewport::updateVisibleArea()
hbar.setRangeLimits (0.0, contentBounds.getWidth());
hbar.setCurrentRange (visibleOrigin.x, contentArea.getWidth());
hbar.setSingleStepSize (singleStepX);
hbar.cancelPendingUpdate();
if (canShowHBar && ! hBarVisible)
visibleOrigin.setX (0);
@ -417,7 +416,6 @@ void Viewport::updateVisibleArea()
vbar.setRangeLimits (0.0, contentBounds.getHeight());
vbar.setCurrentRange (visibleOrigin.y, contentArea.getHeight());
vbar.setSingleStepSize (singleStepY);
vbar.cancelPendingUpdate();
if (canShowVBar && ! vBarVisible)
visibleOrigin.setY (0);