-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: change default gesture from Tap to Fling, fix failing CI #2023
Conversation
Co-authored-by: m-bert <michal.bert@swmansion.com>
@@ -8,7 +8,7 @@ describe('Events', () => { | |||
await waitFor(element(by.id('root-screen-playground-Events'))) | |||
.toBeVisible() | |||
.whileElement(by.id('root-screen-examples-scrollview')) | |||
.scroll(200, 'down'); | |||
.scroll(100, 'down', NaN, 0.85); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for changing this value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that on higher Android APIs with gestures as a device navigation, phone can accidentally go into the preview of apps in the background - that's why I've added the offset here
Also, I am not sure I understand what is going on exactly. Why does gesture-handler call the |
@WoLewicki we're not testing them, but this change does not only limit to the case of the CI. Because of the default |
Ok keep me updated 🚀 |
Description
Unfortunately, the
Tap
gesture as the default gesture in ScreenGestureDetector breaks the back button on Android and iOS. Somehow, gesture detector while "tapping" just taps and holds the back button, resulting in breaking CI and our testing apps.This PR changes this gesture to
Fling
, resulting in correct behavior. It cannot be changed toManual
gesture, since it also breaks the iOS CI.Changes
Test code and steps to reproduce
You can go through Example app and try to click back button in
Events
. Right now it should work properly.Checklist