Index: android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java b/android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java |
index d212f04727e30acea9ac1f6615539df88e881eec..4cc39b311a5a200d57912aa2bf192dbba71a625c 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java |
@@ -69,10 +69,6 @@ public class AwScrollOffsetManager { |
private int mDeferredNativeScrollX; |
private int mDeferredNativeScrollY; |
- // The velocity of the last recorded fling, |
- private int mLastFlingVelocityX; |
- private int mLastFlingVelocityY; |
- |
private OverScroller mScroller; |
public AwScrollOffsetManager(Delegate delegate, OverScroller overScroller) { |
@@ -249,12 +245,6 @@ public class AwScrollOffsetManager { |
mDelegate.scrollNativeTo(x, y); |
} |
- // Called at the beginning of every fling gesture. |
- public void onFlingStartGesture(int velocityX, int velocityY) { |
- mLastFlingVelocityX = velocityX; |
- mLastFlingVelocityY = velocityY; |
- } |
- |
// Called whenever some other touch interaction requires the fling gesture to be canceled. |
public void onFlingCancelGesture() { |
// TODO(mkosiba): Support speeding up a fling by flinging again. |
@@ -265,8 +255,8 @@ public class AwScrollOffsetManager { |
// Called when a fling gesture is not handled by the renderer. |
// We explicitly ask the renderer not to handle fling gestures targeted at the root |
// scroll layer. |
- public void onUnhandledFlingStartEvent() { |
- flingScroll(-mLastFlingVelocityX, -mLastFlingVelocityY); |
+ public void onUnhandledFlingStartEvent(int velocityX, int velocityY) { |
+ flingScroll(-velocityX, -velocityY); |
} |
// Starts the fling animation. Called both as a response to a fling gesture and as via the |