From 76836fe3888f6ee85aa2b18b2b711d2f388ca2c2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 17 Feb 2021 00:57:13 +0100 Subject: [PATCH] overview: Synchronize panel opacity with overview leave animation Gestures leaving the overview from a short distance result in an ugly effect with the panel opacity transitionhaving a fixed duration. Make this transition have the same duration (although in a hackish way) so we avoid the ugly effect. Part-of: --- js/ui/overview.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/overview.js b/js/ui/overview.js index 6fbc39b4e..3f881da57 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -397,6 +397,7 @@ var Overview = class { if (endProgress === 0) { this._shown = false; this.emit('hiding'); + Main.panel.style = 'transition-duration: %dms;'.format(duration); onComplete = () => this._hideDone(); } else { onComplete = () => this._showDone(); @@ -626,6 +627,8 @@ var Overview = class { else Main.layoutManager.hideOverview(); + Main.panel.style = null; + this._syncGrab(); }