Better, simpler, touch detection.

https://gist.github.com/mhulse/4704893