Comment Comment by Sephr The author is intentionally limiting this app to touch-only for touch-capable users. This breaks the game for anyone wanting to use a touchpad or mouse on their touchscreen laptop.The offending code (from http://gameaboutsquares.com/game.c.js, beautified): (function($) { try { document.createEvent("TouchEvent"); return; } catch (f) {} var eventMap = { mousedown : "touchstart", mouseup : "touchend", mousemove : "touchmove" }; // mouse handling code follows Never do this! Remove the entire try-catch block. There is absolutely no reason for you to be limiting touch-capable users to touch-only. parent Sephr 12 years ago
The offending code (from http://gameaboutsquares.com/game.c.js, beautified):
Never do this! Remove the entire try-catch block. There is absolutely no reason for you to be limiting touch-capable users to touch-only.