Merge pull request #32 from coding46/patch-1

[BUGFIX] Add touch event handler for retry button
This commit is contained in:
Gabriele Cirulli
2014-03-12 21:56:13 +01:00
+1
View File
@@ -55,6 +55,7 @@ KeyboardInputManager.prototype.listen = function () {
var retry = document.getElementsByClassName("retry-button")[0];
retry.addEventListener("click", this.restart.bind(this));
retry.addEventListener("touchend", this.restart.bind(this));
// Listen to swipe events
var touchStartClientX, touchStartClientY;