aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2009-07-29 08:55:17 +0000
committerMax Horn2009-07-29 08:55:17 +0000
commit41139100a2c175929f8e85f6a7d26c4ee0974ac8 (patch)
tree2ee0c9f2c567bc7b581cc84522ef5a1c1454cd62 /gui
parentf6e16537b392bca876e0b72ffb3ec548f7d25673 (diff)
downloadscummvm-rg350-41139100a2c175929f8e85f6a7d26c4ee0974ac8.tar.gz
scummvm-rg350-41139100a2c175929f8e85f6a7d26c4ee0974ac8.tar.bz2
scummvm-rg350-41139100a2c175929f8e85f6a7d26c4ee0974ac8.zip
GUI: When clicking in a scrollbar to page up/down, don't scroll a full page; rather scroll a full page minus one line (see FR #2821508). This matches the behavior of the page up/down keys
svn-id: r42881
Diffstat (limited to 'gui')
-rw-r--r--gui/ScrollBarWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ScrollBarWidget.cpp b/gui/ScrollBarWidget.cpp
index 6e27535bfd..f6b36b3aa0 100644
--- a/gui/ScrollBarWidget.cpp
+++ b/gui/ScrollBarWidget.cpp
@@ -63,9 +63,9 @@ void ScrollBarWidget::handleMouseDown(int x, int y, int button, int clickCount)
_currentPos++;
_draggingPart = kDownArrowPart;
} else if (y < _sliderPos) {
- _currentPos -= _entriesPerPage;
+ _currentPos -= _entriesPerPage - 1;
} else if (y >= _sliderPos + _sliderHeight) {
- _currentPos += _entriesPerPage;
+ _currentPos += _entriesPerPage - 1;
} else {
_draggingPart = kSliderPart;
_sliderDeltaMouseDownPos = y - _sliderPos;