[BUGFIX] Add touch event handler for retry button
[BUGFIX] Add touch event handler for retry button

file:a/README.md -> file:b/README.md
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
 
 ### Contributions
 
- - [TimPetricola](https://github.com/TimPetricola) added best score storage
+ - [TimPetricola](https://github.com/warmwaffles) added best score storage
  - [chrisprice](https://github.com/chrisprice) added custom code for swipe handling on mobile
 
 Many thanks to [rayhaanj](https://github.com/rayhaanj), [Mechazawa](https://github.com/Mechazawa), [grant](https://github.com/grant), [remram44](https://github.com/remram44) and [ghoullier](https://github.com/ghoullier) for the many other good contributions.

--- a/js/keyboard_input_manager.js
+++ b/js/keyboard_input_manager.js
@@ -55,6 +55,7 @@
 
   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;

comments