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

Issue 274753002: Ignores mouse motion events when mouse is pressed or drag and drop is in progress (Closed)

Created:
6 years, 7 months ago by varkha
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, ben+corewm_chromium.org
Visibility:
Public.

Description

Ignores mouse motion events when mouse is pressed or drag and drop is in progress in TooltipController to prevent scroll jankiness. The tooltip should be hidden in those cases anyway and we can skip early. This improves scrolling and dragging content, notably with sites like Google maps or sites that use pointer lock such as http://media.tojicode.com/q3bsp/. It also seems to fix laggy text selection in omnibox (tried before and after the patch. BUG=370255, 364677 TEST=Follow steps in the bug (drag http://maps.google.com) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272272

Patch Set 1 #

Total comments: 8

Patch Set 2 : Ignore mouse motion events when mouse is pressed or drag and drop is in progress #

Total comments: 2

Patch Set 3 : Ignores mouse motion events when mouse is pressed or drag and drop is in progress (comments) #

Patch Set 4 : Ignores mouse motion events when mouse is pressed or drag and drop is in progress (comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M ui/views/corewm/tooltip_controller.cc View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 46 (0 generated)
varkha
erg@, can you please take a look? I am not sure if I saw the ...
6 years, 7 months ago (2014-05-07 22:14:35 UTC) #1
varkha
+erg@
6 years, 7 months ago (2014-05-07 22:15:22 UTC) #2
pkotwicz
https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc#newcode102 ui/views/corewm/tooltip_controller.cc:102: if (!IsValidTarget(event_target, screen_target)) Idea: It might be useful to ...
6 years, 7 months ago (2014-05-07 22:45:08 UTC) #3
varkha
https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc#newcode102 ui/views/corewm/tooltip_controller.cc:102: if (!IsValidTarget(event_target, screen_target)) On 2014/05/07 22:45:08, pkotwicz wrote: > ...
6 years, 7 months ago (2014-05-07 23:08:18 UTC) #4
Elliot Glaysher
lgtm
6 years, 7 months ago (2014-05-08 00:33:21 UTC) #5
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-08 00:34:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/1
6 years, 7 months ago (2014-05-08 00:38:07 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-08 05:41:55 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-08 05:45:06 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-05-08 05:45:06 UTC) #10
varkha
+sky@ for OWNERS.
6 years, 7 months ago (2014-05-08 11:43:58 UTC) #11
sky
This seems like a total hack to me. What is causing the slow down?
6 years, 7 months ago (2014-05-08 16:02:30 UTC) #12
varkha
On 2014/05/08 16:02:30, sky wrote: > This seems like a total hack to me. What ...
6 years, 7 months ago (2014-05-08 16:08:09 UTC) #13
pkotwicz
For discussion: I am unsure as to WHEN we should cache the X11 window tree. ...
6 years, 7 months ago (2014-05-08 16:14:17 UTC) #14
sky
https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/274753002/diff/1/ui/views/corewm/tooltip_controller.cc#newcode197 ui/views/corewm/tooltip_controller.cc:197: base::Bind(&TooltipController::DispatchMouseEvent, What happens if we enter some sort of ...
6 years, 7 months ago (2014-05-08 19:05:55 UTC) #15
varkha
sky@, do you think the issues with this CL are resolvable? I think they are ...
6 years, 7 months ago (2014-05-13 19:30:54 UTC) #16
sky
As I said before, all of this is a total hack. I would prefer you ...
6 years, 7 months ago (2014-05-13 19:45:58 UTC) #17
varkha
Maybe we don't need to process the mouse movement events when we know that TooltipController::UpdateIfRequired() ...
6 years, 7 months ago (2014-05-20 19:57:03 UTC) #18
sky
https://codereview.chromium.org/274753002/diff/20001/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/274753002/diff/20001/ui/views/corewm/tooltip_controller.cc#newcode188 ui/views/corewm/tooltip_controller.cc:188: if (!tooltips_enabled_ || I think this early out is ...
6 years, 7 months ago (2014-05-20 20:43:21 UTC) #19
varkha
PTAL. https://codereview.chromium.org/274753002/diff/20001/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/274753002/diff/20001/ui/views/corewm/tooltip_controller.cc#newcode188 ui/views/corewm/tooltip_controller.cc:188: if (!tooltips_enabled_ || On 2014/05/20 20:43:22, sky wrote: ...
6 years, 7 months ago (2014-05-20 21:12:26 UTC) #20
sky
LGTM
6 years, 7 months ago (2014-05-20 23:26:40 UTC) #21
pkotwicz
Valery, before committing can you please update the CL description?
6 years, 7 months ago (2014-05-21 00:34:14 UTC) #22
varkha
On 2014/05/21 00:34:14, pkotwicz wrote: > Valery, before committing can you please update the CL ...
6 years, 7 months ago (2014-05-21 14:48:32 UTC) #23
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-21 14:54:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/70001
6 years, 7 months ago (2014-05-21 19:56:28 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 09:26:39 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 09:30:09 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9700)
6 years, 7 months ago (2014-05-22 09:30:09 UTC) #28
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-22 15:12:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/70001
6 years, 7 months ago (2014-05-22 15:12:58 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 15:16:30 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 15:19:06 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9764)
6 years, 7 months ago (2014-05-22 15:19:07 UTC) #33
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-22 15:20:51 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/70001
6 years, 7 months ago (2014-05-22 15:21:38 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 15:25:29 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 15:27:31 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9764)
6 years, 7 months ago (2014-05-22 15:27:31 UTC) #38
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-22 15:33:55 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/70001
6 years, 7 months ago (2014-05-22 15:35:44 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 15:39:45 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 15:42:30 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9764)
6 years, 7 months ago (2014-05-22 15:42:31 UTC) #43
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 7 months ago (2014-05-22 17:37:14 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/274753002/70001
6 years, 7 months ago (2014-05-22 17:37:43 UTC) #45
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 19:31:55 UTC) #46
Message was sent while issue was closed.
Change committed as 272272

Powered by Google App Engine
This is Rietveld 408576698