MCPcopy Create free account
hub / github.com/arctic-cli/interface / onMouseMove

Function onMouseMove

packages/ui/src/components/resize-handle.tsx:35–41  ·  view source on GitHub ↗
(moveEvent: MouseEvent)

Source from the content-addressed store, hash-verified

33 document.body.style.overflow = "hidden"
34
35 const onMouseMove = (moveEvent: MouseEvent) => {
36 const pos = local.direction === "horizontal" ? moveEvent.clientX : moveEvent.clientY
37 const delta = local.direction === "vertical" ? start - pos : pos - start
38 current = startSize + delta
39 const clamped = Math.min(local.max, Math.max(local.min, current))
40 local.onResize(clamped)
41 }
42
43 const onMouseUp = () => {
44 document.body.style.userSelect = ""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected