From f163126126f2c236118e5c8d18b71363d93e9564 Mon Sep 17 00:00:00 2001 From: Sterling Date: Thu, 31 May 2018 14:48:16 -0700 Subject: [PATCH] Pass linter --- src/js/rendering/frame/FrameRenderer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/rendering/frame/FrameRenderer.js b/src/js/rendering/frame/FrameRenderer.js index aafb65af..d6285db8 100644 --- a/src/js/rendering/frame/FrameRenderer.js +++ b/src/js/rendering/frame/FrameRenderer.js @@ -132,18 +132,18 @@ var height = pskl.app.piskelController.getHeight(); var minX = 0; - var maxX = width - (this.displayWidth / (this.zoom )); - if (maxX > 0 ) { - minX -= this.displayWidth / (this.zoom * 2) - maxX += this.displayWidth / (this.zoom * 2) + var maxX = width - (this.displayWidth / (this.zoom)); + if (maxX > 0) { + minX -= this.displayWidth / (this.zoom * 2); + maxX += this.displayWidth / (this.zoom * 2); } x = pskl.utils.Math.minmax(x, minX, maxX); var minY = 0; var maxY = height - (this.displayHeight / (this.zoom)); if (maxY > 0) { - minY -= this.displayHeight / (this.zoom * 2) - maxY += this.displayHeight / (this.zoom * 2) + minY -= this.displayHeight / (this.zoom * 2); + maxY += this.displayHeight / (this.zoom * 2); } y = pskl.utils.Math.minmax(y, minY, maxY);