Open jasongitmail opened 4 days ago
Thank you for this report @jasongitmail it's the length of the spring (which calculates a duration based off default spring parameters) - the duration is often trailing until completey finished whereby the transition state is removed allowing the actionbar to be tappable. Possible we could adjust spring default to have quicker time trailing to avoid default case. Using manual duration should avoid (meaning it will override spring) and should end promptly at duration.
Possible we could adjust spring default to have quicker time trailing to avoid default case.
@NathanWalker Ideally it'd be possible to get rid of the spring effect and use a custom curve like 'linear' instead.
That makes sense, we could do that as a better starting default while still allowing a standard spring by enabling it with safe defaults and also custom parameters.
Issue Description
When a SharedTransition exists on a page, the action bar becomes very slow, will fail to respond to user taps to "go back" until ~2 seconds after the navigation was started. It feels laggy/buggy for users. This is much slower than when a SharedTransition does not exist on the page.
In this video, I tap "go left" and "go right" and the back buttons as quickly as it will allow me. Left has a SharedTransition, Right has a regular page navigation.
(You can't see it in the video, but when on the left page, I'm tapping "back" multiple times and it is failing to navigate before eventually there is a successful navigation back. When I tap "back" on the right page, it works on the first attempt.)
https://github.com/NativeScript/NativeScript/assets/50032291/ffeeee48-1c86-49cb-9878-75c518967fce
Reproduction
Reproduction on StackBlitz:
Versions:
Relevant log output (if applicable)
Environment
Sharing the environment from StackBlitz where the reproduction lives:
Dependencies
Please accept these terms