macos: send stop event when fingers touch
authorChristian Hergert <christian@hergert.me>
Sat, 26 Feb 2022 21:31:18 +0000 (13:31 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:24:11 +0000 (12:24 -0700)
commit48c650c1021fc263f7ac9d00e84bfba19b789c05
treeb731d8084fa94d3f5f3b76857d8b874487dedbee
parentccf18c239dd402c879dc078ccbb80ade72107d01
macos: send stop event when fingers touch

When the fingers are placed on the touchpad, we get a scroll event with
the phase NSEventPhaseMayBegin. We can use this to synthesize an is_stop
event. This results in the scrolledwindow stopping scroll with stop
gestures.

This can cause another warning as well, however, which should be addressed
from #4730.

Fixes #4733
gdk/macos/gdkmacosdisplay-translate.c