effects/windowview: do close animation after gesture ended

This commit is contained in:
Xaver Hugl 2022-06-12 14:06:56 +02:00
parent fd18401dbf
commit 3c0ed5643b

View file

@ -45,7 +45,7 @@ WindowViewEffect::WindowViewEffect()
if (isRunning() && m_partialActivationFactor > 0.5) {
activate();
} else {
deactivate(0);
deactivate(animationDuration());
}
m_partialActivationFactor = 0;
Q_EMIT gestureInProgressChanged();