diff --git a/src/widget_type.h b/src/widget_type.h index 8655dd2d1d..abf212a2fa 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -839,7 +839,7 @@ public: */ void ScrollTowards(size_type position) { - if (position < this->GetPosition()) { + if (position <= this->GetPosition()) { /* scroll up to the item */ this->SetPosition(position); } else if (position >= this->GetPosition() + this->GetCapacity()) {