From 1856093016405de87e743c8c0a55036f01e2cd6d Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 25 Jun 2019 10:31:17 +0200 Subject: [PATCH] Fixed #5406: Ensure mouse wheel rotation step is never zero thank you @victorking528 --- client/Mac/MRDPView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/Mac/MRDPView.m b/client/Mac/MRDPView.m index 47f2975..bdc3c32 100644 --- a/client/Mac/MRDPView.m +++ b/client/Mac/MRDPView.m @@ -434,6 +434,9 @@ DWORD WINAPI mac_client_thread(void* param) return; /* send out all accumulated rotations */ + if (units > WheelRotationMask) + units = WheelRotationMask; + while (units != 0) { /* limit to maximum value in WheelRotationMask (9bit signed value) */ -- 2.7.4