summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/scrollarea.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index d3f6ac7e1..e22ecdcf3 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -255,8 +255,8 @@ void ScrollArea::logic()
checkPolicies();
- setVerticalScrollAmount(getVerticalScrollAmount());
- setHorizontalScrollAmount(getHorizontalScrollAmount());
+ setVerticalScrollAmount(mVScroll);
+ setHorizontalScrollAmount(mHScroll);
Widget *const content = getContent();
if (content != nullptr)
@@ -1339,7 +1339,7 @@ void ScrollArea::mouseWheelMovedUp(MouseEvent& event)
if (event.isConsumed())
return;
- setVerticalScrollAmount(getVerticalScrollAmount()
+ setVerticalScrollAmount(mVScroll
- getChildrenArea().height / 8);
event.consume();
@@ -1350,7 +1350,7 @@ void ScrollArea::mouseWheelMovedDown(MouseEvent& event)
if (event.isConsumed())
return;
- setVerticalScrollAmount(getVerticalScrollAmount()
+ setVerticalScrollAmount(mVScroll
+ getChildrenArea().height / 8);
event.consume();