MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / onMove

Function onMove

nodeImage.js:1701–1707  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

1699 ev.preventDefault();
1700 }
1701 function onMove(ev) {
1702 if (!dragging) return;
1703 var dx = ev.clientX - startX;
1704 var dy = ev.clientY - startY;
1705 box.style.left = (boxRect.left + dx) + 'px';
1706 box.style.top = (boxRect.top + dy) + 'px';
1707 }
1708 function onUp() { dragging = false; }
1709 dragHandle.onmousedown = onDown;
1710 document.addEventListener('mousemove', onMove);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected