Stop inertia-scrolling when switching away from a tab.

This commit is contained in:
Henrik Rydgard committed 2013-08-20 15:30:47 +02:00
1 parent 3ea9d45299
commit ae0847cecb
1 file changed
+3
+3
View File
@@ -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_) {