i am stupid apparently

This commit is contained in:
biglyderv 2025-05-20 21:11:35 -04:00
parent a6759c6370
commit 44f745ae34
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -57,14 +57,14 @@ function Canvas(width, height, upscale) {
e.preventDefault(); e.preventDefault();
}) })
this.elem.addEventListener('touchend', function (e) { this.elem.addEventListener('mouseup', function (e) {
that.clicked = false; that.clicked = false;
that.firstX = this.pageX; that.firstX = this.pageX;
that.firstY = this.pageY; that.firstY = this.pageY;
}); });
this.elem.addEventListener('mouseup', function (e) { this.elem.addEventListener('touchend', function (e) {
that.clicked = false; that.clicked = false;
that.firstX = e.touches[0].pageY; that.firstX = e.touches[0].pageY;