material-components / material-components/material-components-android

[MaterialContainerTransform] Progress value on transition canceled

Aperta
#3,571 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@hunterstich ci sta già lavorando.

Dal 14/9/2023.

feature request Feature: Transition
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.