Merge "Fix case when user touches the very edge of a view" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd9b079cdf
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user