Description[CRD iOS] Fix bugs in FlingTracker
This CL fixes some issues in FlingTracker:
* The velocity from the OS is in pixel/second so it needs to be converted into
pixel/ms.
* The displacement equation is missing the time constant multiplier.
* It is safer to decide the fling threshold by calculating the maximum
displacement rather than just the time it takes.
* Just check whether the time elapsed is greater than the fling duration rather
than calculating the speed every time the object moves.
Review-Url: https://codereview.chromium.org/2888423003
Cr-Commit-Position: refs/heads/master@{#473707}
Committed: https://chromium.googlesource.com/chromium/src/+/1a66c42636cae8a5bbf57ccbdfb6fd561ea56572
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : WIP #
Total comments: 8
Patch Set 4 : Merge branch 'master' into fix-fling-curve #Patch Set 5 : Fix feedback #Patch Set 6 : Merge branch 'master' into fix-fling-curve #
Messages
Total messages: 11 (6 generated)
|