animations: fix layer slide with fade

fixes #5151
This commit is contained in:
Vaxry 2024-03-18 18:29:57 +00:00
parent 4b74123649
commit 4ffcdc41ff

View file

@ -87,7 +87,8 @@ void SLayerSurface::startAnimation(bool in, bool instant) {
} }
realSize.setValueAndWarp(geometry.size()); realSize.setValueAndWarp(geometry.size());
alpha.setValueAndWarp(1.f); alpha.setValueAndWarp(in ? 0.f : 1.f);
alpha = in ? 1.f : 0.f;
Vector2D prePos; Vector2D prePos;