fixes for touch events

It took some fussing around to get a remote debugger working, but I think I've found and fixed the problem. It's working for me now on a Nexus 7 in both Chrome and Firefox.