material-components / material-components/material-components-android
[MaterialContainerTransform] Progress value on transition canceled
@hunterstich arbeitet bereits daran.
Seit 14.9.2023.
- Vorherrschende Sprache
- Java
- Sterne
- 17.4k
- Forks
- 3.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Is your feature request related to a problem? Please describe.
When you start a transition using the MaterialContainerTransform and cancel it midway, the return transition starts from the 100% progress mark of the transition that just got canceled, disrupting the flow.
For example, a transition with a duration of 3000ms gets interrupted after 1000ms. The animation container jumps to the final stage of the transition to perform the return transition.
Describe the solution you'd like
I would like for the transition to return from its current progress instead. A progress parameter passed in the onTransitionCancel function would be great since we can then adjust our sharedElementReturnTransition progress thresholds accordingly.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.