From 3c0ed5643bfefc769dcf234b71d3c1c3a5a3eb9b Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 12 Jun 2022 14:06:56 +0200 Subject: [PATCH] effects/windowview: do close animation after gesture ended --- src/effects/windowview/windowvieweffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/windowview/windowvieweffect.cpp b/src/effects/windowview/windowvieweffect.cpp index 9ae765f56e..dddd0eeb31 100644 --- a/src/effects/windowview/windowvieweffect.cpp +++ b/src/effects/windowview/windowvieweffect.cpp @@ -45,7 +45,7 @@ WindowViewEffect::WindowViewEffect() if (isRunning() && m_partialActivationFactor > 0.5) { activate(); } else { - deactivate(0); + deactivate(animationDuration()); } m_partialActivationFactor = 0; Q_EMIT gestureInProgressChanged();