提交 da75b7a4 编写于 作者: G Gabriele Cirulli

Merge pull request #32 from coding46/patch-1

[BUGFIX] Add touch event handler for retry button
...@@ -55,6 +55,7 @@ KeyboardInputManager.prototype.listen = function () { ...@@ -55,6 +55,7 @@ KeyboardInputManager.prototype.listen = function () {
var retry = document.getElementsByClassName("retry-button")[0]; var retry = document.getElementsByClassName("retry-button")[0];
retry.addEventListener("click", this.restart.bind(this)); retry.addEventListener("click", this.restart.bind(this));
retry.addEventListener("touchend", this.restart.bind(this));
// Listen to swipe events // Listen to swipe events
var touchStartClientX, touchStartClientY; var touchStartClientX, touchStartClientY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册