Index: content/browser/renderer_host/input/synthetic_mouse_pointer.cc |
diff --git a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc b/content/browser/renderer_host/input/synthetic_mouse_pointer.cc |
index 556d1fe36ed2dfa37630788eb96470258082afb6..2dd8cbb4c5b0e015167863139f4c22db9ee7f875 100644 |
--- a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc |
+++ b/content/browser/renderer_host/input/synthetic_mouse_pointer.cc |
@@ -33,9 +33,12 @@ void SyntheticMousePointer::Move(int index, |
float y, |
SyntheticGestureTarget* target, |
const base::TimeTicks& timestamp) { |
+ blink::WebMouseEvent::Button button = mouse_event_.button; |
+ int click_count = mouse_event_.clickCount; |
mouse_event_ = SyntheticWebMouseEventBuilder::Build( |
blink::WebInputEvent::MouseMove, x, y, 0); |
- mouse_event_.button = blink::WebMouseEvent::ButtonLeft; |
+ mouse_event_.button = button; |
+ mouse_event_.clickCount = click_count; |
} |
void SyntheticMousePointer::Release(int index, |