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.
This commit is contained in:
Tor Hedin Brønner
2017-09-11 00:38:04 +02:00
parent 77038a1029
commit 39f15cbcce
+1 -1
View File
@@ -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