Fixed a bug with touch events on mobile.