mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
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.
This commit is contained in:
parent
5bdf413b19
commit
a6952f78f3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user