material-components / material-components/material-components-android
[MaterialContainerTransform] Progress value on transition canceled
@hunterstich ci sta già lavorando.
Dal 14/9/2023.
- Lingua principale
- Java
- Stelle
- 17.4k
- Fork
- 3.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.