mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 9.1.0348: X11 does not ignore smooth scroll event
Problem: X11 does not ignore smooth scroll event (laniakea64) Solution: Correctly ignore unwanted smooth scroll events on X11 (lilydjwg) fixes #14578 closes: #14583 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
133ed2a592
commit
baedc998b0
@@ -2152,6 +2152,9 @@ scroll_event(GtkWidget *widget,
|
||||
FALSE, vim_modifiers);
|
||||
}
|
||||
}
|
||||
else if (event->direction == GDK_SCROLL_SMOOTH && display_type == DT_X11)
|
||||
// for X11 we deal with unsmooth events, and so ignore the smooth ones
|
||||
;
|
||||
else
|
||||
#undef DT_X11
|
||||
#undef DT_WAYLAND
|
||||
|
Reference in New Issue
Block a user