mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-26 12:41:35 +03:00
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:
parent
fe044cfab1
commit
4d7d2c618f
@ -599,7 +599,7 @@ getMessageHook(int code, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
if (g_mode == kHOOK_RELAY_EVENTS) {
|
if (g_mode == kHOOK_RELAY_EVENTS) {
|
||||||
MSG* msg = reinterpret_cast<MSG*>(lParam);
|
MSG* msg = reinterpret_cast<MSG*>(lParam);
|
||||||
if (msg->message == g_wmMouseWheel) {
|
if (g_wheelSupport == kWheelOld && msg->message == g_wmMouseWheel) {
|
||||||
// post message to our window
|
// post message to our window
|
||||||
PostThreadMessage(g_threadID,
|
PostThreadMessage(g_threadID,
|
||||||
SYNERGY_MSG_MOUSE_WHEEL,
|
SYNERGY_MSG_MOUSE_WHEEL,
|
||||||
|
Loading…
Reference in New Issue
Block a user