mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Avoid reselecting on page up at top.
This commit is contained in:
parent
700a7baa9b
commit
b43069109b
1 changed files with 5 additions and 1 deletions
|
@ -980,7 +980,11 @@ NeighborResult ScrollView::FindScrollNeighbor(View *view, const Point &target, F
|
|||
targetPos.x += mult * bounds_.x;
|
||||
|
||||
// Okay, which subview is closest to that?
|
||||
return vg->FindScrollNeighbor(view, targetPos, direction, best);
|
||||
best = vg->FindScrollNeighbor(view, targetPos, direction, best);
|
||||
// Avoid reselecting the same view.
|
||||
if (best.view == view)
|
||||
best.view = nullptr;
|
||||
return best;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue