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.
This commit is contained in:
crs 2004-10-27 21:29:19 +00:00
parent fe044cfab1
commit 4d7d2c618f
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ getMessageHook(int code, WPARAM wParam, LPARAM lParam)
}
if (g_mode == kHOOK_RELAY_EVENTS) {
MSG* msg = reinterpret_cast<MSG*>(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,