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

Issue 307863003: Listen to 'drag' to detect actual start of drag operation. (Closed)

Created:
6 years, 6 months ago by fukino
Modified:
6 years, 6 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org, dcheng
Visibility:
Public.

Description

Listen to 'drag' to detect actual start of drag operation. When Files.app receives 'dragstart', it cancels file drag operation in some situations. In these cases, 'dragend' or other drag-related events won't be dispatched. Missing 'dragend' causes this issue. 'drag' is dispatched only when 'dragstart' is not cancelled, so we can take it as start of user's drag operation. BUG=326981 TEST=manually confirmed Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273794

Patch Set 1 #

Total comments: 4

Patch Set 2 : Modified handler name to avoid confusion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M ui/file_manager/file_manager/foreground/js/drag_selector.js View 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 chunks +15 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fukino
hirono san, could you take a look? https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/drag_selector.js File ui/file_manager/file_manager/foreground/js/drag_selector.js (right): https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/drag_selector.js#newcode139 ui/file_manager/file_manager/foreground/js/drag_selector.js:139: cr.dispatchSimpleEvent(this.target_, 'dragselectionstart'); ...
6 years, 6 months ago (2014-05-29 09:16:53 UTC) #1
hirono
https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/drag_selector.js File ui/file_manager/file_manager/foreground/js/drag_selector.js (right): https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/drag_selector.js#newcode139 ui/file_manager/file_manager/foreground/js/drag_selector.js:139: cr.dispatchSimpleEvent(this.target_, 'dragselectionstart'); On 2014/05/29 09:16:53, fukino wrote: > 'drag' ...
6 years, 6 months ago (2014-05-29 10:00:30 UTC) #2
fukino
Thank you for the comment! I modified the handler name. https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/file_manager.js File ui/file_manager/file_manager/foreground/js/file_manager.js (right): https://codereview.chromium.org/307863003/diff/1/ui/file_manager/file_manager/foreground/js/file_manager.js#newcode1008 ...
6 years, 6 months ago (2014-05-29 12:35:17 UTC) #3
hirono
lgtm. Thank you!
6 years, 6 months ago (2014-05-30 03:03:26 UTC) #4
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 6 months ago (2014-05-30 03:04:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/307863003/10001
6 years, 6 months ago (2014-05-30 03:06:28 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 07:12:51 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 10:42:45 UTC) #8
Message was sent while issue was closed.
Change committed as 273794

Powered by Google App Engine
This is Rietveld 408576698