GUI: Set ScrollContainer single step to kLineHeight instead of 1 pixel
The single step is the amount of scroll done when clicking once on the scrollbar up or down arrow. It used to be 1 entry, but for the ScrollContainer 1 entry is 1 pixel, which was too litle. Now the single step can be set to a multiple entries.
This commit is contained in:
parent
f7a4b74130
commit
211ef61fdf
3 changed files with 9 additions and 6 deletions
|
@ -73,6 +73,7 @@ void ScrollContainerWidget::recalc() {
|
|||
_verticalScroll->_numEntries = h;
|
||||
_verticalScroll->_currentPos = _scrolledY;
|
||||
_verticalScroll->_entriesPerPage = _limitH;
|
||||
_verticalScroll->_singleStep = kLineHeight;
|
||||
_verticalScroll->setPos(_w - scrollbarWidth, _scrolledY+1);
|
||||
_verticalScroll->setSize(scrollbarWidth, _limitH -2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue