MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onMove

Function onMove

web/components/layout/Sidebar.tsx:49–54  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

47 useEffect(() => {
48 if (!isResizing) return;
49 const onMove = (e: MouseEvent) => {
50 if (!resizeRef.current) return;
51 const delta = e.clientX - resizeRef.current.startX;
52 const next = Math.max(MIN_WIDTH, Math.min(MAX_WIDTH, resizeRef.current.startWidth + delta));
53 setSidebarWidth(next);
54 };
55 const onUp = () => setIsResizing(false);
56 window.addEventListener("mousemove", onMove);
57 window.addEventListener("mouseup", onUp);

Callers

nothing calls this directly

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected