MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / simulatePointerMouseEvent

Function simulatePointerMouseEvent

src/dd-touch.ts:65–72  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

63 * @param {String} simulatedType The corresponding mouse event
64 */
65function 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/**

Callers 2

pointerenterFunction · 0.85
pointerleaveFunction · 0.85

Calls 1

simulateMouseEventMethod · 0.80

Tested by

no test coverage detected