Skip to content
Snippets Groups Projects
Commit b15dfc2c authored by Andrea Gottsponer's avatar Andrea Gottsponer
Browse files

- lock aspect ratio (set as default)

parent 79bc6551
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ export class ScaleInteraction<TElement extends MedsurfDraw.ImageObject> extends
// Keep aspect ratio
// TODO up / down scaling not consistent
if ((this._scaleSide == ScaleSideTypes.X_Y || this._scaleSide == ScaleSideTypes.X_HEIGHT || this._scaleSide == ScaleSideTypes.WIDTH_Y || this._scaleSide == ScaleSideTypes.WIDTH_HEIGHT) && (MedsurfDraw.Keyboard.isKeyDown("ShiftLeft") || MedsurfDraw.Keyboard.isKeyDown("ShiftRight"))) {
if ((this._scaleSide == ScaleSideTypes.X_Y || this._scaleSide == ScaleSideTypes.X_HEIGHT || this._scaleSide == ScaleSideTypes.WIDTH_Y || this._scaleSide == ScaleSideTypes.WIDTH_HEIGHT) && !(MedsurfDraw.Keyboard.isKeyDown("ShiftLeft") || MedsurfDraw.Keyboard.isKeyDown("ShiftRight"))) {
const rectangle = this.element.getRectangle();
if (dW > dH) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment