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

Issue 1271823002: Fix issue with longpress drag selection motion (Closed)

Created:
5 years, 4 months ago by jdduke (slow)
Modified:
5 years, 4 months ago
Reviewers:
mfomitchev
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix issue with longpress drag selection motion If the user has already dragged outside the initial selected word region by the time the browser gets a selection update, or if the selected word isn't coincident with the longpress location, the subsequently dragged selection endpoint can be wrong. For such cases, rather than using the drag direction for drag anchor picking, just use the distance between the current touch point and the selection endpoints. BUG=466749 Committed: https://crrev.com/a188bd6dff9c2a0425d1f31e3ab929c373762d83 Cr-Commit-Position: refs/heads/master@{#341791}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -12 lines) Patch
M ui/touch_selection/longpress_drag_selector.cc View 1 2 chunks +24 lines, -11 lines 0 comments Download
M ui/touch_selection/longpress_drag_selector_unittest.cc View 1 2 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
jdduke (slow)
mohsen@: PTAL, thanks. We'll probably need to cherry-pick this to M45 for the initial release ...
5 years, 4 months ago (2015-08-03 17:31:15 UTC) #2
jdduke (slow)
-mohsen, +mfomitchev Mikhail could you take a look?
5 years, 4 months ago (2015-08-04 17:30:46 UTC) #4
mfomitchev
This is because we set the longpress_drag_start_anchor_ to the first move coordinate instead of touch_down_position_, ...
5 years, 4 months ago (2015-08-04 18:31:05 UTC) #5
mfomitchev
This is because we set the longpress_drag_start_anchor_ to the first move coordinate instead of touch_down_position_, ...
5 years, 4 months ago (2015-08-04 18:31:36 UTC) #6
jdduke (slow)
On 2015/08/04 18:31:36, mfomitchev wrote: > This is because we set the longpress_drag_start_anchor_ to the ...
5 years, 4 months ago (2015-08-04 19:14:51 UTC) #7
mfomitchev
LGTM
5 years, 4 months ago (2015-08-04 19:22:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271823002/20001
5 years, 4 months ago (2015-08-04 19:28:35 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-04 21:05:19 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 21:08:05 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a188bd6dff9c2a0425d1f31e3ab929c373762d83
Cr-Commit-Position: refs/heads/master@{#341791}

Powered by Google App Engine
This is Rietveld 408576698