From 6a10f2f2f1cf6082429b1544ec624aeaf4e18b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 20 Jan 2022 19:11:48 +0100 Subject: [PATCH] panel: Fix corner transition when slowed down Both ease() and CSS durations take the slow-down factor into account, so the corners currently end up using the square of the factor in their transition. Part-of: --- js/ui/panel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index dafba690a..ce1c49308 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -492,7 +492,8 @@ class PanelCorner extends St.DrawingArea { let cornerRadius = node.get_length("-panel-corner-radius"); let borderWidth = node.get_length('-panel-corner-border-width'); - const transitionDuration = node.get_transition_duration(); + const transitionDuration = + node.get_transition_duration() / St.Settings.get().slow_down_factor; const opacity = node.get_double('-panel-corner-opacity'); this.set_size(cornerRadius, borderWidth + cornerRadius);