Fixed event handling for touch-supported devices.