diff --git a/README.md b/README.md index fe2ba5bbd69712f3f1b550883d9d2f5b780c7551..6b0d3bf298d40df97b6a2384852a363f23d1b6cf 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Made just for fun. [Play it here!](http://gabrielecirulli.github.io/2048/) ### Contributions - - [TimPetricola](https://github.com/warmwaffles) added best score storage + - [TimPetricola](https://github.com/TimPetricola) 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. diff --git a/index.html b/index.html index 50469057a3a72564718470febdbf9adc7fb2c69e..fb97bf204e92f23fbd106497fbd496c69e88b0ff 100644 --- a/index.html +++ b/index.html @@ -69,6 +69,10 @@


+ Note: This site is the official version of 2048. You can play it on your phone via http://git.io/2048. All other apps or sites are derivatives or fakes, and should be used with caution. +

+
+

Created by Gabriele Cirulli. Based on 1024 by Veewo Studio and conceptually similar to Threes by Asher Vollmer.

diff --git a/js/keyboard_input_manager.js b/js/keyboard_input_manager.js index 24dde7a1238e32dcf29b2f15d790450a42d6dce1..b85c8c2dca760ab87816c4fa35b378d83b5aa615 100644 --- a/js/keyboard_input_manager.js +++ b/js/keyboard_input_manager.js @@ -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;