Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: remoting/host/event_executor_win.cc

Issue 6697024: client-side wheel mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused usings Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}

Powered by Google App Engine
This is Rietveld 408576698