Index: remoting/host/event_executor_win.cc |
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc |
index 7e3d8013fb9a0d187f95afc61eca11ab278df58f..b1f58427f4c01799147294faa6b264b37c15ac0d 100644 |
--- a/remoting/host/event_executor_win.cc |
+++ b/remoting/host/event_executor_win.cc |
@@ -127,12 +127,12 @@ void EventExecutorWin::HandleMouse(const MouseEvent& event) { |
int dy = event.wheel_offset_y(); |
if (dx != 0) { |
- wheel.mi.mouseData = dx; |
+ wheel.mi.mouseData = dx * WHEEL_DELTA; |
Wez
2011/10/13 00:38:01
Do we need to worry about overflow here?
garykac
2011/10/13 21:18:53
mouseData is a DWORD
WHEEL_DELTA is 120
dx is typi
|
wheel.mi.dwFlags = MOUSEEVENTF_HWHEEL; |
SendInput(1, &wheel, sizeof(INPUT)); |
} |
if (dy != 0) { |
- wheel.mi.mouseData = dy; |
+ wheel.mi.mouseData = dy * WHEEL_DELTA; |
wheel.mi.dwFlags = MOUSEEVENTF_WHEEL; |
SendInput(1, &wheel, sizeof(INPUT)); |
} |