Q42/0hh1 — pull request #9 by imcnally (2014-11-19 01:35:00+00:00)
Title: Add tap hold to turn tile blue

Hi Martin and co.,

0hh1 is a fantastic game – congratulations on the effort and thanks for sharing it!

One issue I had when using it on my phone is double tapping for a blue tile. In the heat of solving the puzzle quickly, I found myself forgetting to repeat the tap action twice, leaving a supposed-to-be-blue tile red, and messing up my board. I got to thinking about how to minimize that, and I thought a tap hold would be an interesting gesture to try out. So, as soon as I made the code change and demoed it, I thought "yeah, this feels right." You still tap once for red, twice for blue, or hold for blue.

So what I did was pull in a custom build of jQuery mobile (touch events only) to keep the payload light, add a tap hold event, and remove a double click bug detection function (I'm thinking it's obsolete with touch events).

Note: My editor also took out some extra whitespace, which I hope you don't mind.

I hope the change finds you all well, and I look forward to long holding.

- Ian