| Index: ui/aura/window_event_dispatcher.cc
|
| diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
|
| index 7b40c71a06e473df88478d3fc1641b00d402875e..bb47856a8969784d36bd25cb7aa0a5d7b73b3e6b 100644
|
| --- a/ui/aura/window_event_dispatcher.cc
|
| +++ b/ui/aura/window_event_dispatcher.cc
|
| @@ -140,7 +140,6 @@ void WindowEventDispatcher::DispatchGestureEvent(ui::GestureEvent* event) {
|
| DispatchDetails details = DispatchHeldEvents();
|
| if (details.dispatcher_destroyed)
|
| return;
|
| -
|
| Window* target = GetGestureTarget(event);
|
| if (target) {
|
| event->ConvertLocationToTarget(window(), target);
|
| @@ -437,10 +436,7 @@ void WindowEventDispatcher::PrepareEventForDispatch(ui::Event* event) {
|
| // coordinate system to |window()|'s coordinate system.
|
| return;
|
| }
|
| - if (event->IsMouseEvent() ||
|
| - event->IsScrollEvent() ||
|
| - event->IsTouchEvent() ||
|
| - event->IsGestureEvent()) {
|
| + if (event->IsLocatedEvent() && event->HasNativeEvent()) {
|
| TransformEventForDeviceScaleFactor(static_cast<ui::LocatedEvent*>(event));
|
| }
|
| }
|
|
|