From 01047cf13f018f10b87788fb86efb61840a07f35 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 3 Jan 2022 11:17:43 +0800 Subject: [PATCH] Revert "Stop sending touch-end events if coalescing scroll events" This reverts commit a6952f78f3962ac2d9a5add580a130f0abd31429. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 3fabdece497..c9120638a73 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10230,12 +10230,12 @@ handle_one_xevent (struct x_display_info *dpyinfo, val->emacs_value += delta; if (mwheel_coalesce_scroll_events - && (fabs (val->emacs_value) < 1)) + && (fabs (val->emacs_value) < 1) + && (fabs (delta) > 0)) continue; bool s = signbit (val->emacs_value); - inev.ie.kind = ((mwheel_coalesce_scroll_events - || fabs (delta) > 0) + inev.ie.kind = (fabs (delta) > 0 ? (val->horizontal ? HORIZ_WHEEL_EVENT : WHEEL_EVENT) -- 2.39.2