Merge pull request #32 from coding46/patch-1
[BUGFIX] Add touch event handler for retry button
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user