added workaround for devices that support touch and mouse events