summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2010-10-19 15:50:43 -0700
committerMichael Jurka <mikejurka@google.com>2010-10-19 15:50:43 -0700
commitfd177c1d10085e5e12ff7df27d956a378d1139b1 (patch)
tree6404a02bef6e2d7c7066019d6dfc67d4e5de5644 /src
parentce34a9768b01115def95f000a6a8f35870f10d3a (diff)
downloadpackages_apps_trebuchet-fd177c1d10085e5e12ff7df27d956a378d1139b1.zip
packages_apps_trebuchet-fd177c1d10085e5e12ff7df27d956a378d1139b1.tar.gz
packages_apps_trebuchet-fd177c1d10085e5e12ff7df27d956a378d1139b1.tar.bz2
Fix bug where screen would get stuck while panning
Bug: 3109113
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/PagedView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher2/PagedView.java
index abb9b0b..39a6af0 100644
--- a/src/com/android/launcher2/PagedView.java
+++ b/src/com/android/launcher2/PagedView.java
@@ -649,7 +649,7 @@ public abstract class PagedView extends ViewGroup {
* otherwise don't. mScroller.isFinished should be false when
* being flinged.
*/
- final int xDist = (mScroller.getFinalX() - mScroller.getCurrX());
+ final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop);
if (finishedScrolling) {
mTouchState = TOUCH_STATE_REST;