diff --git a/js/core.js b/js/core.js index ce9bd40..5f2cced 100644 --- a/js/core.js +++ b/js/core.js @@ -67,8 +67,8 @@ function Canvas(width, height, upscale) { this.elem.addEventListener('touchend', function (e) { that.clicked = false; - that.firstX = e.touches[0].pageY; - that.firstY = e.touches[0].pageY; + that.firstX = this.pageX; + that.firstY = this.pageY; });