Merge "Fix case when user touches the very edge of a view" into klp-dev

This commit is contained in:
Mindy Pereira
2013-08-28 23:08:53 +00:00
committed by Android (Google) Code Review

View File

@@ -531,7 +531,7 @@ public abstract class AutoScrollHelper implements View.OnTouchListener {
case EDGE_TYPE_INSIDE:
case EDGE_TYPE_INSIDE_EXTEND:
if (current < leading) {
if (current > 0) {
if (current >= 0) {
// Movement up to the edge is scaled.
return 1f - current / leading;
} else if (mActive && (mEdgeType == EDGE_TYPE_INSIDE_EXTEND)) {