Index: content/child/fling_animator_impl_android.cc |
diff --git a/content/child/fling_animator_impl_android.cc b/content/child/fling_animator_impl_android.cc |
index 235f920b48f1cecf757c86ed5c79dd75956deb61..19b3761d4800451187aad00533c393cb8637835f 100644 |
--- a/content/child/fling_animator_impl_android.cc |
+++ b/content/child/fling_animator_impl_android.cc |
@@ -72,17 +72,15 @@ |
return false; |
} |
- target->notifyCurrentFlingVelocity(blink::WebFloatSize( |
- scroller_.GetCurrVelocityX(), scroller_.GetCurrVelocityY())); |
- |
gfx::PointF current_position(scroller_.GetCurrX(), scroller_.GetCurrY()); |
gfx::Vector2dF scroll_amount(current_position - last_position_); |
last_position_ = current_position; |
// scrollBy() could delete this curve if the animation is over, so don't touch |
// any member variables after making that call. |
- target->scrollBy(blink::WebFloatSize(scroll_amount)); |
- return true; |
+ return target->scrollBy(blink::WebFloatSize(scroll_amount), |
+ blink::WebFloatSize(scroller_.GetCurrVelocityX(), |
+ scroller_.GetCurrVelocityY())); |
} |
FlingAnimatorImpl* FlingAnimatorImpl::CreateAndroidGestureCurve( |