This commit is contained in:
Peter Nelson 2024-04-26 16:59:07 -05:00 committed by GitHub
commit 78dac32d5d
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()) {