Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 6cd3c43e2dad9addd866098702afd9b64af79343..6e01b11de7fde67030e7acdf98d44569aac7b5fc 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -424,8 +424,10 @@ void WindowEventDispatcher::OnEventProcessingStarted(ui::Event* event) { |
// The held events are already in |window()|'s coordinate system. So it is |
// not necessary to apply the transform to convert from the host's |
// coordinate system to |window()|'s coordinate system. |
- if (event->IsLocatedEvent() && !is_dispatched_held_event(*event)) |
+ if (event->IsLocatedEvent() && !is_dispatched_held_event(*event) && |
+ Env::GetInstance()->mode() == Env::Mode::LOCAL) { |
TransformEventForDeviceScaleFactor(static_cast<ui::LocatedEvent*>(event)); |
+ } |
if (mus_mouse_location_updater_) |
mus_mouse_location_updater_->OnEventProcessingStarted(*event); |