MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onDragStart

Function onDragStart

src/components/referencesPanel/index.js:73–83  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

71 $dragHandle.onmousedown = onDragStart;
72
73 function onDragStart(e) {
74 isDragging = true;
75 startY = e.touches ? e.touches[0].clientY : e.clientY;
76 currentY = startY;
77 $panel.style.transition = "none";
78
79 document.addEventListener("touchmove", onDragMove, { passive: false });
80 document.addEventListener("mousemove", onDragMove);
81 document.addEventListener("touchend", onDragEnd);
82 document.addEventListener("mouseup", onDragEnd);
83 }
84
85 function onDragMove(e) {
86 if (!isDragging) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected