Prevent duplicate mouse events from firing when both mouse and touch events are enabled in the browser