Merge "Fix for ScrollView absorbing fling stretch" into udc-dev
This commit is contained in:
@@ -1550,6 +1550,7 @@ public class ScrollView extends FrameLayout {
|
||||
float deltaDistance = -unconsumed * FLING_DESTRETCH_FACTOR / size;
|
||||
int consumed = Math.round(-size / FLING_DESTRETCH_FACTOR
|
||||
* mEdgeGlowTop.onPullDistance(deltaDistance, 0.5f));
|
||||
mEdgeGlowTop.onRelease();
|
||||
if (consumed != unconsumed) {
|
||||
mEdgeGlowTop.finish();
|
||||
}
|
||||
@@ -1560,6 +1561,7 @@ public class ScrollView extends FrameLayout {
|
||||
float deltaDistance = unconsumed * FLING_DESTRETCH_FACTOR / size;
|
||||
int consumed = Math.round(size / FLING_DESTRETCH_FACTOR
|
||||
* mEdgeGlowBottom.onPullDistance(deltaDistance, 0.5f));
|
||||
mEdgeGlowBottom.onRelease();
|
||||
if (consumed != unconsumed) {
|
||||
mEdgeGlowBottom.finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user