* src/xterm.c (handle_one_xevent): Don't generate touch-end
events if mwheel_coalesce_scroll_events is non-nil.
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)