Compatible with touch events in mobile devices.