Fixed a bug so scroll position doesn't bounce around if the user is frantically scrolling during the indexing process.

This commit is contained in:
casey langen 2017-07-09 15:39:39 -07:00
parent cc6e8dbff3
commit 0623522f2a

View File

@ -236,7 +236,9 @@ void CategoryListView::OnQueryCompleted(IQuery* query) {
/* scroll down just a bit more to reveal the item above so /* scroll down just a bit more to reveal the item above so
there's indication the user can scroll. */ there's indication the user can scroll. */
this->ScrollTo(selectedIndex == 0 ? selectedIndex : selectedIndex - 1); if (!this->IsEntryVisible(selectedIndex)) {
this->ScrollTo(selectedIndex == 0 ? selectedIndex : selectedIndex - 1);
}
} }
this->OnAdapterChanged(); this->OnAdapterChanged();