-
-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new gesture relation -
blocksHandlers
- working like `reverse…
…d waitFor` (#2627) ## Description Introduces a new relation between gestures, which allows to set one gesture recognizer as blocking for another one. It's basically the same as `waitFor` but in the other direction - `waitFor` allows to specify which gestures must fail before this one can activate. The new prop allows to specify which gestures should require this one to fail before they can activate. For the name, I think we've settled at `blocksHandlers` for the old API and `.blocksExternalGesture()` for the new API. There's no need to add another type of composition since it accomplishes the same thing as `Gesture.Exclusive`, and is inherently a between-components relation. ## Test plan Tested on the Example app Since it relies on already existing logic, I assume it will work correctly. I would like to do more testing nonetheless. Also needs to be tested on physical iOS device with multi-touch gestures. --------- Co-authored-by: Kacper Kapuściak <[email protected]>
- Loading branch information
1 parent
25ba4b8
commit 510905e
Showing
9 changed files
with
289 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.