macos: actually drop unnecessary momentum events
authorChristian Hergert <christian@hergert.me>
Thu, 10 Mar 2022 11:21:12 +0000 (03:21 -0800)
committerChristian Hergert <christian@hergert.me>
Thu, 10 Mar 2022 11:21:12 +0000 (03:21 -0800)
These would get passed along to the NSApplication which we don't really
need to have happen. Denote it as such.

gdk/macos/gdkmacosdisplay-translate.c

index fe4701c39d441d5359b0bd04c398f997e6473cd7..4ad12ba7781b6d379d1a4bc931bbb85e7f026159 100644 (file)
@@ -628,7 +628,7 @@ fill_scroll_event (GdkMacosDisplay *self,
    * handle those internally.
    */
   if (phase == 0 && momentumPhase != 0)
-    return NULL;
+    return GDK_MACOS_EVENT_DROP;
 
   seat = gdk_display_get_default_seat (GDK_DISPLAY (self));
   pointer = gdk_seat_get_pointer (seat);