Support for devices with both a mouse and touch events