macos: actually drop unnecessary momentum events

These would get passed along to the NSApplication which we don't really
need to have happen. Denote it as such.
This commit is contained in:
Christian Hergert 2022-03-10 03:21:12 -08:00 committed by Christian Hergert
parent 5efa8071d6
commit 5c2d9d6f19

View 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);