Fixed wrongly assigned parameters

This commit is contained in:
Severin Opel 2019-12-12 17:23:39 +01:00
parent 87c966062c
commit 32e913c629

View File

@ -151,10 +151,10 @@ export class GeoMap {
*/ */
lock({ rotatable = false, translatable = false, movableX = false, movableY = false, scalable = false } = {}) { lock({ rotatable = false, translatable = false, movableX = false, movableY = false, scalable = false } = {}) {
if (this.image && this.image.scatter) { if (this.image && this.image.scatter) {
this.image.scatter.translatable = rotatable this.image.scatter.translatable = translatable
this.image.scatter.movableX = translatable this.image.scatter.movableX = movableX
this.image.scatter.movableY = movableX this.image.scatter.movableY = movableY
this.image.scatter.rotatable = movableY this.image.scatter.rotatable = rotatable
this.image.scatter.scalable = scalable this.image.scatter.scalable = scalable
} }
} }