mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Finish animations disabling.
Replace some infinite animations with static layouts.
This commit is contained in:
@@ -393,6 +393,9 @@ void Widget::opacityAnimationCallback() {
|
||||
}
|
||||
|
||||
void Widget::step_shift(float64 ms, bool timer) {
|
||||
if (anim::Disabled()) {
|
||||
ms += st::notifyFastAnim;
|
||||
}
|
||||
float64 dt = ms / float64(st::notifyFastAnim);
|
||||
if (dt >= 1) {
|
||||
a_shift.finish();
|
||||
|
Reference in New Issue
Block a user