Handle touch and mouse events, where both devices are present