aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-11-25 19:02:32 +0800
committerPo Lu2021-11-25 19:04:02 +0800
commitd0ea2a87f4d7a1afbe959fe53099222e120e8858 (patch)
tree7e8eb7fdf3fc576e84131eb38c1bbdf3f7848856 /src
parent7fea9c8415bd04100be7857a138ad03e5a7ec4aa (diff)
downloademacs-d0ea2a87f4d7a1afbe959fe53099222e120e8858.tar.gz
emacs-d0ea2a87f4d7a1afbe959fe53099222e120e8858.zip
Fix scroll wheel reporting on NS
* src/nsterm.m (- mouseDown): Clear scroll wheel accumulators.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 17f5b98c571..80117a41a56 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6604,7 +6604,10 @@ not_in_argv (NSString *arg)
6604 6604
6605 lines = abs (totalDeltaX / lineHeight); 6605 lines = abs (totalDeltaX / lineHeight);
6606 x = totalDeltaX; 6606 x = totalDeltaX;
6607 totalDeltaX = totalDeltaX % lineHeight; 6607 if (!x_coalesce_scroll_events)
6608 totalDeltaX = 0;
6609 else
6610 totalDeltaX = totalDeltaX % lineHeight;
6608 totalDeltaY = 0; 6611 totalDeltaY = 0;
6609 } 6612 }
6610 else if (abs (totalDeltaY) >= abs (totalDeltaX) 6613 else if (abs (totalDeltaY) >= abs (totalDeltaX)
@@ -6616,7 +6619,10 @@ not_in_argv (NSString *arg)
6616 6619
6617 lines = abs (totalDeltaY / lineHeight); 6620 lines = abs (totalDeltaY / lineHeight);
6618 y = totalDeltaY; 6621 y = totalDeltaY;
6619 totalDeltaY = totalDeltaY % lineHeight; 6622 if (!x_coalesce_scroll_events)
6623 totalDeltaY = 0;
6624 else
6625 totalDeltaY = totalDeltaY % lineHeight;
6620 totalDeltaX = 0; 6626 totalDeltaX = 0;
6621 } 6627 }
6622 6628