revert an accidental change in a previous commit, to gui2 scrollbar
Partially reverts 2021a42d5b
I had this on a testing branch but I didn't intend to commit.
This commit is contained in:
parent
692b18781a
commit
eb9ac4dd9b
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ void tscrollbar_::set_item_position(const unsigned item_position)
|
|||
? item_count_ - visible_items_
|
||||
: item_position;
|
||||
|
||||
item_position_ = ((step_size_ * item_position_) + step_size_ - 1) / step_size_; // round to nearest step size
|
||||
item_position_ = (item_position_ + step_size_ - 1) / step_size_;
|
||||
|
||||
if(all_items_visible()) {
|
||||
item_position_ = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue