* Simulate a mouse event based on a corresponding Pointer event * @param {Object} e A pointer event * @param {String} simulatedType The corresponding mouse event
(e: PointerEvent, simulatedType: string)
| 63 | * @param {String} simulatedType The corresponding mouse event |
| 64 | */ |
| 65 | function simulatePointerMouseEvent(e: PointerEvent, simulatedType: string) { |
| 66 | |
| 67 | // Prevent "Ignored attempt to cancel a touchmove event with cancelable=false" errors |
| 68 | if (e.cancelable) e.preventDefault(); |
| 69 | |
| 70 | // Dispatch the simulated event to the target element |
| 71 | Utils.simulateMouseEvent(e, simulatedType); |
| 72 | } |
| 73 | |
| 74 | |
| 75 | /** |
no test coverage detected