fix resizing

This commit is contained in:
Gavin McDonald
2018-09-01 21:15:29 -04:00
parent 1f2131c992
commit 6a9d006ab4
2 changed files with 12 additions and 13 deletions

View File

@@ -253,10 +253,8 @@ export class Tessellate {
const moveForScale = {
deltaX: (((centerX - originX) / scaleOrig) * (scaleOrig - scaleNew)),
deltaY: (((centerY - originY) / scaleOrig) * (scaleOrig - scaleNew)),
target: {
offsetWidth: event.width,
offsetHeight: event.height,
},
height: event.height,
width: event.width,
};
this.move(moveForScale);