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

Issue 2888423003: [CRD iOS] Fix bugs in FlingTracker (Closed)

Created:
3 years, 7 months ago by Yuwei
Modified:
3 years, 7 months ago
Reviewers:
nicholss
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -31 lines) Patch
M remoting/client/ui/fling_tracker.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/client/ui/fling_tracker.cc View 1 2 3 4 3 chunks +35 lines, -27 lines 0 comments Download
M remoting/client/ui/gesture_interpreter.cc View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 11 (6 generated)
Yuwei
PTAL thanks!
3 years, 7 months ago (2017-05-22 04:55:07 UTC) #3
nicholss
lgtm with some nits and suggestions. https://codereview.chromium.org/2888423003/diff/40001/remoting/client/ui/fling_tracker.cc File remoting/client/ui/fling_tracker.cc (right): https://codereview.chromium.org/2888423003/diff/40001/remoting/client/ui/fling_tracker.cc#newcode66 remoting/client/ui/fling_tracker.cc:66: if (GetDisplacement(time_constant_, initial_speed_rate_, ...
3 years, 7 months ago (2017-05-22 20:17:00 UTC) #4
Yuwei
Thanks! https://codereview.chromium.org/2888423003/diff/40001/remoting/client/ui/fling_tracker.cc File remoting/client/ui/fling_tracker.cc (right): https://codereview.chromium.org/2888423003/diff/40001/remoting/client/ui/fling_tracker.cc#newcode66 remoting/client/ui/fling_tracker.cc:66: if (GetDisplacement(time_constant_, initial_speed_rate_, fling_duration_) < On 2017/05/22 20:16:59, ...
3 years, 7 months ago (2017-05-22 21:18:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2888423003/100001
3 years, 7 months ago (2017-05-22 21:19:28 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 21:38:19 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1a66c42636cae8a5bbf57ccbdfb6...

Powered by Google App Engine
This is Rietveld 408576698