Filter gesture states using .when()
mainBy default, RxGesture emits events for all states (including .possible). To react only to specific lifecycle stages of a gesture, use the .when() operator.
Recommended states by gesture type:
.tap(),.click(),.rightClick(),.swipe(): Use.recognized.longPress(),.press(): Use.began.pan(),.pinch(),.rotation(),.magnification(),.screenEdgePan(): Use.began,.changed, or.ended
When using anyGesture, you can apply a single state filter to all gestures in the group, or use tuple syntax to apply different filters to each gesture.