Support touch events in HTML version for issue #43.