Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index 248c9f133ae3c9df2897cd027c6182e1c6ee5a98..4f89c62d2dba33c1e4961b8888717cbba55b19f3 100644 |
--- a/ui/aura/root_window.cc |
+++ b/ui/aura/root_window.cc |
@@ -744,13 +744,14 @@ ui::GestureStatus RootWindow::ProcessGestureEvent(Window* target, |
// Move the mouse to the new location. |
if (generate_move && point_in_root != last_mouse_location_) { |
MouseEvent synth(ui::ET_MOUSE_MOVED, point_in_root, |
- event->root_location(), event->flags()); |
+ event->root_location(), |
+ event->flags() | ui::EF_IS_SYNTHESIZED); |
sky
2012/05/18 19:53:29
We want ET_FROM_TOUCH here.
sadrul
2012/05/18 19:58:45
In addition, right? (instead of instead of)?
sadrul
2012/05/18 20:02:03
Done.
|
if (DispatchMouseEventToTarget(&synth, target)) |
status = ui::GESTURE_STATUS_SYNTH_MOUSE; |
} |
for (const ui::EventType* type = types; *type != ui::ET_UNKNOWN; |
++type) { |
- int flags = event->flags(); |
+ int flags = event->flags() | ui::EF_IS_SYNTHESIZED; |
if (event->type() == ui::ET_GESTURE_DOUBLE_TAP && |
*type == ui::ET_MOUSE_PRESSED) |
flags |= ui::EF_IS_DOUBLE_CLICK; |