[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d0ea2a8: Fix scroll wheel reporting on NS
From: |
Po Lu |
Subject: |
master d0ea2a8: Fix scroll wheel reporting on NS |
Date: |
Thu, 25 Nov 2021 06:04:17 -0500 (EST) |
branch: master
commit d0ea2a87f4d7a1afbe959fe53099222e120e8858
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix scroll wheel reporting on NS
* src/nsterm.m (- mouseDown): Clear scroll wheel
accumulators.
---
src/nsterm.m | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/nsterm.m b/src/nsterm.m
index 17f5b98..80117a4 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6604,7 +6604,10 @@ not_in_argv (NSString *arg)
lines = abs (totalDeltaX / lineHeight);
x = totalDeltaX;
- totalDeltaX = totalDeltaX % lineHeight;
+ if (!x_coalesce_scroll_events)
+ totalDeltaX = 0;
+ else
+ totalDeltaX = totalDeltaX % lineHeight;
totalDeltaY = 0;
}
else if (abs (totalDeltaY) >= abs (totalDeltaX)
@@ -6616,7 +6619,10 @@ not_in_argv (NSString *arg)
lines = abs (totalDeltaY / lineHeight);
y = totalDeltaY;
- totalDeltaY = totalDeltaY % lineHeight;
+ if (!x_coalesce_scroll_events)
+ totalDeltaY = 0;
+ else
+ totalDeltaY = totalDeltaY % lineHeight;
totalDeltaX = 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d0ea2a8: Fix scroll wheel reporting on NS,
Po Lu <=