am 2ea21a84: Merge "Fix a WebView scrolling regression - bug 2633572." into froyo
Merge commit '2ea21a84ef81849153f30bbea213acd5be110c08' into froyo-plus-aosp * commit '2ea21a84ef81849153f30bbea213acd5be110c08': Fix a WebView scrolling regression - bug 2633572.
This commit is contained in:
@@ -4814,6 +4814,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
boolean done = false;
|
boolean done = false;
|
||||||
boolean keepScrollBarsVisible = false;
|
boolean keepScrollBarsVisible = false;
|
||||||
if (Math.abs(fDeltaX) < 1.0f && Math.abs(fDeltaY) < 1.0f) {
|
if (Math.abs(fDeltaX) < 1.0f && Math.abs(fDeltaY) < 1.0f) {
|
||||||
|
mLastTouchX = x;
|
||||||
|
mLastTouchY = y;
|
||||||
keepScrollBarsVisible = done = true;
|
keepScrollBarsVisible = done = true;
|
||||||
} else {
|
} else {
|
||||||
if (mSnapScrollMode == SNAP_X || mSnapScrollMode == SNAP_Y) {
|
if (mSnapScrollMode == SNAP_X || mSnapScrollMode == SNAP_Y) {
|
||||||
@@ -4865,6 +4867,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
} else {
|
} else {
|
||||||
// keep the scrollbar on the screen even there is no
|
// keep the scrollbar on the screen even there is no
|
||||||
// scroll
|
// scroll
|
||||||
|
mLastTouchX = x;
|
||||||
|
mLastTouchY = y;
|
||||||
keepScrollBarsVisible = true;
|
keepScrollBarsVisible = true;
|
||||||
}
|
}
|
||||||
mLastTouchTime = eventTime;
|
mLastTouchTime = eventTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user