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

Function pointerdown

src/dd-touch.ts:136–140  ·  view source on GitHub ↗
(e: PointerEvent)

Source from the content-addressed store, hash-verified

134 * so instead of PointerEvent to still get enter/leave and send the matching mouse event.
135 */
136export function pointerdown(e: PointerEvent): void {
137 // console.log("pointer down")
138 if (e.pointerType === 'mouse') return;
139 (e.target as HTMLElement).releasePointerCapture(e.pointerId) // <- Important!
140}
141
142export function pointerenter(e: PointerEvent): void {
143 // ignore the initial one we get on pointerdown on ourself

Callers 1

dd-touch-spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected