Skip to content

Introduce and use GestureTrigger#2757

Open
leolost2605 wants to merge 1 commit intomainfrom
leolost/gesture-trigger
Open

Introduce and use GestureTrigger#2757
leolost2605 wants to merge 1 commit intomainfrom
leolost/gesture-trigger

Conversation

@leolost2605
Copy link
Member

GestureTrigger provides a configurable way to specify what should trigger a gesture. It also automatically enables the correct backends needed to recognize the handled gestures. Currently two triggers are provided. SwipeTrigger recognizing swipes on a provided actor and GlobalTrigger recognizing global touch gestures.

This makes it easier for users of gesturecontroller by being declarative instead of imperative. They can now simply specify what gesture should be recognized and not how it is recognized.
It also moves very global gesture specific stuff from the gesturecontroller to the globaltrigger.
It also allows more flexibility which allows us to remove a workaround where we always allow gestures from the scroll backend and will provide more freedom in the future (e.g. allowing gestures to only start within a certain area e.g. for dock swipe up).

@leolost2605 leolost2605 marked this pull request as ready for review February 7, 2026 14:01
GestureTrigger provides a configurable way to specify
what should trigger a gesture. It also automatically enables
the correct backends needed to recognize the handled gestures.
Currently two triggers are provided. SwipeTrigger recognizing
swipes on a provided actor and GlobalTrigger recognizing
global touch gestures.
@leolost2605 leolost2605 force-pushed the leolost/gesture-trigger branch from ad2f1cc to 5964fa2 Compare February 7, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant