diff --git a/gdk/macos/gdkmacosdisplay-translate.c b/gdk/macos/gdkmacosdisplay-translate.c index f895db9686..5f5eeffdcf 100644 --- a/gdk/macos/gdkmacosdisplay-translate.c +++ b/gdk/macos/gdkmacosdisplay-translate.c @@ -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,