Set the minimum fling to the title height.
Dragging and flinging have different minimums for the max Y value. Allow the fling to have the title height instead of zero for the minimum max Y so the title can always be removed via fling. This fixes http://b/issue?id=2109006
This commit is contained in:
@@ -4570,7 +4570,7 @@ public class WebView extends AbsoluteLayout
|
|||||||
|
|
||||||
private int computeMaxScrollY() {
|
private int computeMaxScrollY() {
|
||||||
int maxContentH = computeVerticalScrollRange() + getTitleHeight();
|
int maxContentH = computeVerticalScrollRange() + getTitleHeight();
|
||||||
return Math.max(maxContentH - getHeight(), 0);
|
return Math.max(maxContentH - getHeight(), getTitleHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void flingScroll(int vx, int vy) {
|
public void flingScroll(int vx, int vy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user