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

Function touchstart

src/dd-touch.ts:79–88  ·  view source on GitHub ↗
(e: TouchEvent)

Source from the content-addressed store, hash-verified

77 * @param {Object} e The widget element's touchstart event
78 */
79export function touchstart(e: TouchEvent): void {
80 // Ignore the event if another widget is already being handled
81 if (DDTouch.touchHandled) return;
82 DDTouch.touchHandled = true;
83
84 // Simulate the mouse events
85 // simulateMouseEvent(e, 'mouseover');
86 // simulateMouseEvent(e, 'mousemove');
87 simulateMouseEvent(e, 'mousedown');
88}
89
90/**
91 * Handle the touchmove events

Callers 1

dd-touch-spec.tsFile · 0.90

Calls 1

simulateMouseEventFunction · 0.85

Tested by

no test coverage detected