diff options
author | Po Lu <luangruo@yahoo.com> | 2022-01-02 11:02:02 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-01-02 11:02:02 +0800 |
commit | a6952f78f3962ac2d9a5add580a130f0abd31429 (patch) | |
tree | aeb5a689902756ad2fa3e17f46efe0ad5766bb1b /src | |
parent | 5bdf413b1902c8bbebdef774a701fa1badce9e32 (diff) | |
download | emacs-a6952f78f3962ac2d9a5add580a130f0abd31429.tar.gz emacs-a6952f78f3962ac2d9a5add580a130f0abd31429.tar.bz2 emacs-a6952f78f3962ac2d9a5add580a130f0abd31429.zip |
Stop sending touch-end events if coalescing scroll events
* src/xterm.c (handle_one_xevent): Don't generate touch-end
events if mwheel_coalesce_scroll_events is non-nil.
Diffstat (limited to 'src')
-rw-r--r-- | src/xterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 3c35c275baf..c3443317559 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10173,12 +10173,12 @@ handle_one_xevent (struct x_display_info *dpyinfo, val->emacs_value += delta; if (mwheel_coalesce_scroll_events - && (fabs (val->emacs_value) < 1) - && (fabs (delta) > 0)) + && (fabs (val->emacs_value) < 1)) continue; bool s = signbit (val->emacs_value); - inev.ie.kind = (fabs (delta) > 0 + inev.ie.kind = ((mwheel_coalesce_scroll_events + || fabs (delta) > 0) ? (val->horizontal ? HORIZ_WHEEL_EVENT : WHEEL_EVENT) |