Make example work on touch screen as well.

I've only tested it on Firefox and Google Chrome, both on Android on a Samsung Galaxy S3.