mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
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:
parent
cc6e8dbff3
commit
0623522f2a
@ -236,7 +236,9 @@ void CategoryListView::OnQueryCompleted(IQuery* query) {
|
||||
|
||||
/* scroll down just a bit more to reveal the item above so
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user