From 263dc85fbd4816266c8042ce624befe91a711b15 Mon Sep 17 00:00:00 2001 From: Richard Benjamin Allen Date: Tue, 18 Jun 2024 11:22:23 +0100 Subject: [PATCH] Fixed: Remove trailing spaces --- src/overlay.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/overlay.js b/src/overlay.js index 5676769d..c77be16d 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -261,7 +261,7 @@ var size = this.size = positionAndSize.size; var rotate; var scale = ""; - + if (viewport.flipped){ rotate = -positionAndSize.rotate; scale = " scaleX(-1)"; @@ -269,7 +269,6 @@ else { rotate = positionAndSize.rotate; } - // call the onDraw callback if it exists to allow one to overwrite // the drawing/positioning/sizing of the overlay if (this.onDraw) { @@ -320,11 +319,9 @@ var rect = new $.Rect(position.x, position.y, size.x, size.y); var boundingBox = this._getBoundingBox(rect, viewport.getRotation(true)); position = boundingBox.getTopLeft(); - if (viewport.flipped){ position.x = (viewport.getContainerSize().x - position.x); } - size = boundingBox.getSize(); } else { rotate = viewport.getRotation(true);