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

Unified Diff: ui/aura/root_window.cc

Issue 160563002: Aura: don't synthesize mouse moves while holding pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: description Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/aura/root_window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 128a04424d45ae084e9b6ecfbd659e1d1b42979a..991ebb581c1cea73894c645197d062d43c0d6d79 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -830,6 +830,8 @@ void RootWindow::PreDispatchMouseEvent(Window* target,
if (IsEventCandidateForHold(*event) && !dispatching_held_event_) {
if (move_hold_count_) {
+ if (event->type() != ui::ET_MOUSE_CAPTURE_CHANGED)
sky 2014/02/14 16:40:05 I think you should be selective here. Meaning use
dgozman 2014/02/17 14:19:59 It's inside PreDispatchMouseEvent. The only mouse
+ SetLastMouseLocation(window(), event->root_location());
held_move_event_.reset(new ui::MouseEvent(*event, target, window()));
event->SetHandled();
return;
« no previous file with comments | « no previous file | ui/aura/root_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698