From 2c9036deee66f2dc99a34de43c2ca2e3ac4e251a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Thu, 12 Oct 2017 18:45:06 +0200 Subject: [PATCH] Base sync on destinationX of clone No known problems with using plain x, but destinationX is more correct --- minimap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minimap.js b/minimap.js index e9498f9..5781d13 100644 --- a/minimap.js +++ b/minimap.js @@ -227,7 +227,7 @@ Minimap = new Lang.Class({ // this.layout sets destinationX this.minimapActor.destinationX = -(movingClone.destinationX - targetX); Tweener.addTween(this.minimapActor - , { x: -(movingClone.destinationX - targetX) + , { x: this.minimapActor.destinationX , time: 0.25, transition: 'easeInOutQuad' }); @@ -239,9 +239,9 @@ Minimap = new Lang.Class({ time = 0.25 let selectedIndex = this.space.selectedIndex(); let clone = this.clones[selectedIndex]; - this.minimapActor.destinationX = -(clone.x - selectedWindowX); + this.minimapActor.destinationX = -(clone.destinationX - selectedWindowX); Tweener.addTween(this.minimapActor - , { x: -(clone.x - selectedWindowX) + , { x: this.minimapActor.destinationX , time: time, transition: 'easeInOutQuad' }); }, })