If you want to cover both mouse and touch then Try using pointer events instead of mouse or touch, since pointer events fires for both touch and mouse event