Further scale correction fixes

This commit is contained in:
barsdeveloper
2022-12-12 22:05:02 +01:00
parent 88a1becb58
commit 4bc87263f1
4 changed files with 9 additions and 9 deletions

View File

@@ -49,9 +49,10 @@ export default class IDraggableElement extends IElement {
}
computeSizes() {
const scaleCorrection = 1 / this.blueprint.getScale()
const bounding = this.getBoundingClientRect()
this.sizeX = bounding.width
this.sizeY = bounding.height
this.sizeX = bounding.width * scaleCorrection
this.sizeY = bounding.height * scaleCorrection
}
/** @param {Map} changedProperties */