Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9850)

Unified Diff: content/child/touch_fling_gesture_curve.cc

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/fling_animator_impl_android.cc ('k') | content/child/touch_fling_gesture_curve_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/touch_fling_gesture_curve.cc
diff --git a/content/child/touch_fling_gesture_curve.cc b/content/child/touch_fling_gesture_curve.cc
index 43cbd5ba7e607d8702ea5b5c68f628ec296b5600..a05292f8025e1c770398f1f26ae5a95a078ae2a9 100644
--- a/content/child/touch_fling_gesture_curve.cc
+++ b/content/child/touch_fling_gesture_curve.cc
@@ -150,11 +150,9 @@ bool TouchFlingGestureCurve::apply(double time, WebGestureCurveTarget* target) {
if (time + time_offset_ < curve_duration_ ||
scroll_increment != WebFloatSize()) {
- target->notifyCurrentFlingVelocity(scroll_velocity);
// scrollBy() could delete this curve if the animation is over, so don't
// touch any member variables after making that call.
- target->scrollBy(scroll_increment);
- return true;
+ return target->scrollBy(scroll_increment, scroll_velocity);
}
return false;
« no previous file with comments | « content/child/fling_animator_impl_android.cc ('k') | content/child/touch_fling_gesture_curve_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698