Attempt to handle smartphone drag and drop
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 4 Dec 2018 15:46:16 +0000 (16:46 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 4 Dec 2018 15:46:16 +0000 (16:46 +0100)
public/javascripts/components/game.js

index 308d415..84976b0 100644 (file)
@@ -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