MCPcopy Create free account
hub / github.com/TanStack/hotkeys / handleMouseMove

Function handleMouseMove

packages/hotkeys-devtools/src/components/Shell.tsx:65–72  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

63 }
64
65 const handleMouseMove = (e: MouseEvent) => {
66 if (!isDragging()) return
67
68 e.preventDefault()
69 const deltaX = e.clientX - dragStartX
70 const newWidth = Math.max(150, Math.min(800, dragStartWidth + deltaX))
71 setLeftPanelWidth(newWidth)
72 }
73
74 const handleMouseUp = () => {
75 setIsDragging(false)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…