forked from AuroraMiddleware/gtk
macos: fix typo when creating scroll events
This fixes an issue where we would ignore events with Y delta and no X delta while scrolling due to a typo when checking for any delta. This fixes deceleration of kinetic scrolling on the macOS backend. Fixes #3418
This commit is contained in:
parent
0daa905a27
commit
115ea624d9
@ -610,7 +610,7 @@ fill_scroll_event (GdkMacosDisplay *self,
|
||||
sx = [nsevent scrollingDeltaX];
|
||||
sy = [nsevent scrollingDeltaY];
|
||||
|
||||
if (sx != 0.0 || dx != 0.0)
|
||||
if (sx != 0.0 || sy != 0.0)
|
||||
ret = gdk_scroll_event_new (GDK_SURFACE (surface),
|
||||
pointer,
|
||||
NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user