From 39f15cbcce8a12e560ad0720af798507d0837763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 11 Sep 2017 00:38:04 +0200 Subject: [PATCH] Fix: scaling issue using set_pivot_point `scale_center` is deprecrated, new windows gets 0.5, 1 as pivot point to scale around, which doesn't mix well with scaling_center. --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 65fbf9c..6eee497 100644 --- a/tiling.js +++ b/tiling.js @@ -74,7 +74,7 @@ move = (meta_window, x, y, onComplete) => { let scale = 1 if (x >= global.screen_width - margin || x <= margin - frame.width) scale = 0.95 - actor.scale_center_y = frame.height/2 + actor.set_pivot_point(0.5, 0.5); Tweener.addTween(actor, {x: x - x_offset , y: y - y_offset , time: 0.25