David
10/29/2024, 8:09 AMdropUnlessResumed
, dropUnlessStarted
, or something else? dropUnlessResumed
doesn't allow any clicks while the view is animating in. Which has caused some troubles for us in UI tests as some clicks are ignored because it is too fast, this can also in some cases be experienced as a user as well. Would there be any drawbacks of using dropUnlessStarted
instead of dropUnlessResumed
?Stylianos Gakis
10/29/2024, 9:18 AMDavid
10/29/2024, 9:46 AMdropUnlessStarted
be an option? From my testing when navigate is invoked the old view will enter CREATED
state. So do conclude:
• On a new screen entering, it is STARTED
while it is animating in.
• The previous screen will leave RESUMED
& STARTED
immediately and be in CREATED
lifecycle state.
When it comes to predictive back, it goes to STARTED
when the back animation is started, once you lift and execute the back action it goes to CREATED
Stylianos Gakis
10/29/2024, 10:56 AMDavid
10/29/2024, 2:27 PMSo using dropUnlesStarted will mean that you will be able to click on such buttons on the screen animating IN, but not on the one animating out right?Yeah this is how I interpreted it.
And you will be able to interact with both screens while the back gesture is going on.From testing while you are doing a predictive back gesture, input are blocked. So you wouldn't be able to click anything.
David
10/29/2024, 2:32 PMdropUnlessResumed
was proposed as an example for navigation. Not sure if this is intentional to use it instead of dropUnlessStarted
, I guess one should not read too much into it.Stylianos Gakis
10/29/2024, 3:35 PMIan Lake
10/30/2024, 5:42 AMdropUnlessResumed
if you only want clicks in the settled cases