Base sync on destinationX of clone

No known problems with using plain x, but destinationX is more correct
This commit is contained in:
Ole Jørgen Brønner
2017-10-12 20:00:04 +02:00
committed by Tor Hedin Brønner
parent 0be793d08e
commit 2c9036deee
+3 -3
View File
@@ -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' });
},
})