OSDN Git Service

Can't stop the fling!
authorJeff Brown <jeffbrown@google.com>
Sat, 17 Sep 2011 04:40:49 +0000 (21:40 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 17 Sep 2011 04:43:58 +0000 (21:43 -0700)
commitb0c71eb9f50ce06327fa6bb6219f0970e04fd856
treed6b88ffc318ae23124c750faf2dc0f873e97e0cf
parent1afeea0f207f8b8b781f799f5d150b70495abb1a
Can't stop the fling!
Bug: 5335420

Fixed a bug in VelocityTracker where the output velocity was
not being set to zero when not available.

Added a condition to ensure that the velocity is at least
the minimum fling velocity before continuing.  If not, then
the user is trying to stop the fling and scroll more precisely.

Change-Id: I36634b0c3f7a9a09cf20c33f71d41163a8e33eed
core/java/android/widget/AbsListView.java
core/java/android/widget/OverScroller.java
libs/ui/Input.cpp