DescriptionEarly terminate flings when scrolling impossible
Previously, flings would continue animating until they were either interrupted,
or had reached the end of their respective curve. Instead, allow the fling to
terminate early if they hit their limit, given the result of
|WebGestureCurveTarget::scrollBy|. This saves power on sites where fling scrolls
have little affordance.
Also simplify WebGestureCurveTarget by consolidating scroll delta and velocity
into a single method.
Corresponding Chromium patch:
https://codereview.chromium.org/136173004/
Final Blink cleanup patch:
https://codereview.chromium.org/217893004
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170406
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Split up patch accordingly #
Messages
Total messages: 11 (0 generated)
|