Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui::Animations::Simple: ensure .start() starts from from #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kolayne
Copy link

@kolayne kolayne commented Jan 1, 2025

Unlike the .change() method, which configures a running animation to
go to a different state, the .start() method should first set the
initial opacity value, then animate.

It is fixed by making sure the private .prepare() method always sets
from, rather than ignoring it when the animation is already running.

Part of a fix of telegramdesktop/tdesktop#28811.

ui/effects/animations.h Outdated Show resolved Hide resolved
@kolayne kolayne force-pushed the animations-fading-out branch from 073079b to 07b90e9 Compare January 2, 2025 15:48
@kolayne kolayne changed the title Ui::Animations::Simple: add .fadingOut() and fix .start() Ui::Animations::Simple: ensure .start() starts from from Jan 2, 2025
@kolayne kolayne force-pushed the animations-fading-out branch from 07b90e9 to 1da57c5 Compare January 5, 2025 16:50
Unlike the `.change()` method, which configures a running animation to
go to a different state, the `.start()` method should first set the
initial opacity value, then animate.

It is fixed by making sure the private `.prepare()` method always sets
`from`, rather than ignoring it when the animation is already running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant