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

[MaterialContainerTransform] Progress value on transition canceled

Offen
#3,571 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@hunterstich arbeitet bereits daran.

Seit 14.9.2023.

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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.