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 19b3761d4800451187aad00533c393cb8637835f..235f920b48f1cecf757c86ed5c79dd75956deb61 100644 |
--- a/content/child/fling_animator_impl_android.cc |
+++ b/content/child/fling_animator_impl_android.cc |
@@ -72,15 +72,17 @@ |
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. |
- return target->scrollBy(blink::WebFloatSize(scroll_amount), |
- blink::WebFloatSize(scroller_.GetCurrVelocityX(), |
- scroller_.GetCurrVelocityY())); |
+ target->scrollBy(blink::WebFloatSize(scroll_amount)); |
+ return true; |
} |
FlingAnimatorImpl* FlingAnimatorImpl::CreateAndroidGestureCurve( |