am f7b4accb: Fix scroll jump in ScrollView.
Merge commit 'f7b4accbda1a4d98a5fadbf3984cb9666a4fe9e9' into eclair-mr2-plus-aosp * commit 'f7b4accbda1a4d98a5fadbf3984cb9666a4fe9e9': Fix scroll jump in ScrollView.
This commit is contained in:
@@ -3990,6 +3990,13 @@ public class WebView extends AbsoluteLayout
|
||||
}
|
||||
|
||||
mTouchMode = TOUCH_DRAG_MODE;
|
||||
mLastTouchX = x;
|
||||
mLastTouchY = y;
|
||||
fDeltaX = 0.0f;
|
||||
fDeltaY = 0.0f;
|
||||
deltaX = 0;
|
||||
deltaY = 0;
|
||||
|
||||
WebViewCore.pauseUpdate(mWebViewCore);
|
||||
if (!mDragFromTextInput) {
|
||||
nativeHideCursor();
|
||||
|
||||
@@ -51,8 +51,6 @@ import java.util.List;
|
||||
* <p>ScrollView only supports vertical scrolling.
|
||||
*/
|
||||
public class ScrollView extends FrameLayout {
|
||||
static final String TAG = "ScrollView";
|
||||
|
||||
static final int ANIMATED_SCROLL_GAP = 250;
|
||||
|
||||
static final float MAX_SCROLL_FACTOR = 0.5f;
|
||||
@@ -401,6 +399,7 @@ public class ScrollView extends FrameLayout {
|
||||
final int yDiff = (int) Math.abs(y - mLastMotionY);
|
||||
if (yDiff > mTouchSlop) {
|
||||
mIsBeingDragged = true;
|
||||
mLastMotionY = y;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user