Skip to content

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
@leolost2605 leolost2605 force-pushed the leolost/gesture-trigger branch from ad2f1cc to 5964fa2 Compare February 7, 2026 14:02
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great cleanup!

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 5964fa2 to f07903e Compare February 9, 2026 09:47
@leolost2605 leolost2605 merged commit 3b5917a into main Feb 9, 2026
6 checks passed
@leolost2605 leolost2605 deleted the leolost/gesture-trigger branch February 9, 2026 09:51
@leolost2605 leolost2605 mentioned this pull request Feb 9, 2026
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.

2 participants