mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
Stop inertia-scrolling when switching away from a tab.
This commit is contained in:
1 parent
3ea9d45299
commit
ae0847cecb
1 file changed
+3
@@ -663,6 +663,9 @@ bool ScrollView::CanScroll() const {
|
||||
}
|
||||
|
||||
void ScrollView::Update(const InputState &input_state) {
|
||||
if (visibility_ != V_VISIBLE) {
|
||||
inertia_ = 0.0f;
|
||||
}
|
||||
ViewGroup::Update(input_state);
|
||||
gesture_.UpdateFrame();
|
||||
if (scrollToTarget_) {
|
||||
|
||||
Reference in new issue
Block a user