Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 8d023829d8a25c2cba7e4a73c1c2436b9253f6d4..382db082ec38eaec66f344b737c010195ad0ca3a 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1182,10 +1182,8 @@ void ContentViewCoreImpl::FlingStart(JNIEnv* env, jobject obj, jlong time_ms, |
WebGestureEvent event = MakeGestureEvent( |
WebInputEvent::GestureFlingStart, time_ms, x, y); |
- // Velocity should not be scaled by DIP since that interacts poorly with the |
- // deceleration constants. The DIP scaling is done on the renderer. |
- event.data.flingStart.velocityX = vx; |
- event.data.flingStart.velocityY = vy; |
+ event.data.flingStart.velocityX = vx / GetDpiScale(); |
+ event.data.flingStart.velocityY = vy / GetDpiScale(); |
SendGestureEvent(event); |
} |