mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
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
This commit is contained in:
parent
f6e16537b3
commit
41139100a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user