Skip to content

Commit

Permalink
Merge pull request gabrielecirulli#32 from coding46/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] Add touch event handler for retry button
  • Loading branch information
gabrielecirulli committed Mar 12, 2014
2 parents bd8516a + fc6206a commit da75b7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/keyboard_input_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da75b7a

Please sign in to comment.