Use touch events only when the app runs on mobile device.