Fixes #941.

Fixes issue of touch events not responding in iOS.