From 9106c77bf4f1d56ad855d4ffbb93f945065d7fac Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 4 Dec 2018 16:46:16 +0100 Subject: [PATCH] Attempt to handle smartphone drag and drop --- public/javascripts/components/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 308d415e..84976b0c 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -437,9 +437,9 @@ Vue.component('my-game', { mousedown: this.mousedown, mousemove: this.mousemove, mouseup: this.mouseup, - touchdown: this.mousedown, + touchstart: this.mousedown, touchmove: this.mousemove, - touchup: this.mouseup, + touchend: this.mouseup, }, }, elementArray -- 2.44.0