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

Issue 1778063002: Eliminate pinch drift by removing touch radius from span calculation (Closed)

Created:
4 years, 9 months ago by tdresser
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, tdresser+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate pinch drift by removing touch radius from span calculation Previously, we included touch radius in our pinch span computation. This caused some drift between the users fingers and the web contents during pinch. Removing the touch radius fixes this problem. BUG=590026 Committed: https://crrev.com/b89f4c6eefa4f3a8d346c3f747c993845bb34cc7 Cr-Commit-Position: refs/heads/master@{#386377}

Patch Set 1 #

Patch Set 2 : Shrink minimum scale span. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -176 lines) Patch
M ui/android/java/res/values/dimens.xml View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java View 1 5 chunks +7 lines, -27 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration.h View 4 chunks +0 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration_android.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration_aura.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider_config_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.h View 3 chunks +0 lines, -17 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 7 chunks +3 lines, -93 lines 0 comments Download
M ui/gfx/android/view_configuration.cc View 7 chunks +7 lines, -23 lines 0 comments Download
M ui/mojo/init/ui_init.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778063002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778063002/1
4 years, 9 months ago (2016-03-09 20:17:20 UTC) #2
tdresser
4 years, 9 months ago (2016-03-09 20:17:26 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-09 21:43:37 UTC) #6
tdresser
I spent a bunch of time playing with this on an N7, as you requested ...
4 years, 9 months ago (2016-03-21 15:05:53 UTC) #7
aelias_OOO_until_Jul13
Are you sure we aren't pulling the value from our copy in ui/android/java/res/values/dimens.xml, instead of ...
4 years, 9 months ago (2016-03-22 20:15:40 UTC) #8
tdresser
At least on my N5, https://code.google.com/p/chromium/codesearch#chromium/src/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java&l=123 is successful, and we pull it from the native ...
4 years, 9 months ago (2016-03-23 17:20:14 UTC) #9
aelias_OOO_until_Jul13
Yeah, we can stop reading the native value, since it's coupled to the algorithm. Even ...
4 years, 9 months ago (2016-03-23 22:15:03 UTC) #10
tdresser
I've shrunk the min scaling span by about 2 * the minimum touch major. For ...
4 years, 9 months ago (2016-03-24 14:26:55 UTC) #11
aelias_OOO_until_Jul13
Adding adamp@ to check if Android-side is fine with doing the same change. Adam, I ...
4 years, 9 months ago (2016-03-25 23:17:38 UTC) #12
tdresser
On 2016/03/25 23:17:38, aelias wrote: > Adding adamp@ to check if Android-side is fine with ...
4 years, 8 months ago (2016-04-04 12:05:28 UTC) #13
adamp
On 2016/04/04 12:05:28, tdresser wrote: > On 2016/03/25 23:17:38, aelias wrote: > > Adding adamp@ ...
4 years, 8 months ago (2016-04-04 23:08:45 UTC) #14
tdresser
On 2016/04/04 23:08:45, adamp wrote: > On 2016/04/04 12:05:28, tdresser wrote: > > On 2016/03/25 ...
4 years, 8 months ago (2016-04-05 12:30:04 UTC) #15
aelias_OOO_until_Jul13
lgtm
4 years, 8 months ago (2016-04-05 18:07:39 UTC) #16
tdresser
+sadrul@ for ui/mojo/init/ui_init.cc ui/android/java/res/values/dimens.xml
4 years, 8 months ago (2016-04-05 18:10:25 UTC) #17
tdresser
+sadrul for real this time, for ui/mojo/init/ui_init.cc ui/android/java/res/values/dimens.xml
4 years, 8 months ago (2016-04-06 14:36:47 UTC) #19
sadrul
stamp lgtm (sorry about the delay)
4 years, 8 months ago (2016-04-08 14:20:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778063002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778063002/20001
4 years, 8 months ago (2016-04-11 12:12:47 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-11 13:23:31 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 13:24:28 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b89f4c6eefa4f3a8d346c3f747c993845bb34cc7
Cr-Commit-Position: refs/heads/master@{#386377}

Powered by Google App Engine
This is Rietveld 408576698