From a8bfae0333128aae722e1e71e46e43eb69e4aa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 30 Oct 2017 15:16:48 +0100 Subject: [PATCH] Use less abrupt staggered scaling on fold --- minimap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimap.js b/minimap.js index 838f14b..12fcb07 100644 --- a/minimap.js +++ b/minimap.js @@ -141,7 +141,7 @@ var Minimap = new Lang.Class({ let clone = clones[i]; clone.set_pivot_point(0, 0.5); if (clone.x + this.minimapActor.x <= -maxProtrusion) { - let scale = 1 - 0.05*(around - i); + let scale = 1 - 0.02*(around - i); Tweener.addTween(clone, {x: -this.minimapActor.x - (maxProtrusion - i*leftStackGap) , scale_x: scale @@ -158,7 +158,7 @@ var Minimap = new Lang.Class({ let clone = clones[i]; clone.set_pivot_point(1, 0.5); if (clone.x + clone.width + this.minimapActor.x >= Tiling.primary.width + maxProtrusion) { - let scale = 1 - 0.05*(i - around); + let scale = 1 - 0.02*(i - around); Tweener.addTween(clone, {x: -this.minimapActor.x + Tiling.primary.width + (maxProtrusion - (clones.length-1 - i)*rightStackGap) - clone.width