This commit is contained in:
Peter Nelson 2024-04-27 19:47:21 +01:00 committed by GitHub
commit cfb9e55ab1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {