MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / onPointerUp

Function onPointerUp

packages/@stdlib/misc/src/dom.ts:147–159  ·  view source on GitHub ↗
(upEvent: PointerEvent)

Source from the content-addressed store, hash-verified

145 }
146
147 function onPointerUp(upEvent: PointerEvent) {
148 if (upEvent.pointerId !== downEvent.pointerId) {
149 return;
150 }
151
152 destroy();
153
154 options.up?.(upEvent, downEvent);
155
156 if (dragging) {
157 options.dragEnd?.(upEvent, downEvent);
158 }
159 }
160
161 return () => cancel(true);
162}

Callers

nothing calls this directly

Calls 1

destroyFunction · 0.85

Tested by

no test coverage detected