]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Stop sending touch-end events if coalescing scroll events"
authorPo Lu <luangruo@yahoo.com>
Mon, 3 Jan 2022 03:17:43 +0000 (11:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 3 Jan 2022 03:17:43 +0000 (11:17 +0800)
This reverts commit a6952f78f3962ac2d9a5add580a130f0abd31429.

src/xterm.c

index 3fabdece497476f78051e3ae827406fd71c338ac..c9120638a73f3da347b70bcdf2707fb008949f26 100644 (file)
@@ -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)