Added support for touch events on mobile devices.