From 4d7d2c618f9f0bfb122da2b8ee8fa006c5314eec Mon Sep 17 00:00:00 2001 From: crs Date: Wed, 27 Oct 2004 21:29:19 +0000 Subject: [PATCH] Fixed bug in mouse wheel handling. Was reacting with mouse wheel events when receiving any event with message == 0 when the system doesn't use old style mouse wheel events. Some programs (especially the flash plugin) would send events with message == 0 causing undesired wheel scrolling. --- lib/platform/CSynergyHook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platform/CSynergyHook.cpp b/lib/platform/CSynergyHook.cpp index 10a36cbf..9b622bc4 100644 --- a/lib/platform/CSynergyHook.cpp +++ b/lib/platform/CSynergyHook.cpp @@ -599,7 +599,7 @@ getMessageHook(int code, WPARAM wParam, LPARAM lParam) } if (g_mode == kHOOK_RELAY_EVENTS) { MSG* msg = reinterpret_cast(lParam); - if (msg->message == g_wmMouseWheel) { + if (g_wheelSupport == kWheelOld && msg->message == g_wmMouseWheel) { // post message to our window PostThreadMessage(g_threadID, SYNERGY_MSG_MOUSE_WHEEL,