From e1032902ac147976f1366c191d820e84b91f97c0 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Wed, 21 May 2025 14:47:05 -0400 Subject: [PATCH] change scaling to not fully use division --- js/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/core.js b/js/core.js index 92d8dd9..2994789 100644 --- a/js/core.js +++ b/js/core.js @@ -33,7 +33,7 @@ function Canvas(width, height, upscale) { that.pageY = e.touches[0].pageY; } - function unclicker(e) { + function unclicker(e) { that.clicked = false; that.firstX = this.pageX; @@ -67,7 +67,7 @@ function Canvas(width, height, upscale) { this.elem.addEventListener('mouseup', unclicker); - this.elem.addEventListener('touchend',unclicker); + this.elem.addEventListener('touchend', unclicker); this.clicked = false; @@ -228,7 +228,7 @@ Canvas.prototype.click = function () { this.firstY = this.pageY; } -var canvas = new Canvas(Math.floor(window.innerWidth / 4.5), Math.floor(window.innerHeight / 7.5), 4); +var canvas = new Canvas(Math.floor(window.innerWidth / 4), Math.floor(window.innerHeight / 4) - 100, 4); var handler = new TickHandler(canvas); setInterval(() => {