mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-19 00:20:09 +00:00
gtkeventcontrollerscroll: Drop device type checks
Kinetic scrolling (and begin/end tracking) broke with commit cab1dcb696
since the pointing device used on X11 does not get as much GdkInputSource
granularity as the source device used to have in GTK3.
Actually this is kinda pointless, devices incapable of smooth scroll
should send discrete events, without those devices in the picture, we
want kinetic scroll to apply on every other device capable of smooth
scroll, so just do that.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3210
This commit is contained in:
parent
01ddc181f9
commit
11e4a46967
@ -263,9 +263,7 @@ gtk_event_controller_scroll_handle_event (GtkEventController *controller,
|
||||
|
||||
gdk_scroll_event_get_deltas (event, &dx, &dy);
|
||||
|
||||
if (!scroll->active &&
|
||||
(input_source == GDK_SOURCE_TRACKPOINT ||
|
||||
input_source == GDK_SOURCE_TOUCHPAD))
|
||||
if (!scroll->active)
|
||||
{
|
||||
g_signal_emit (controller, signals[SCROLL_BEGIN], 0);
|
||||
scroll_history_reset (scroll);
|
||||
|
Loading…
Reference in New Issue
Block a user