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

Function handleMouseDown

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

Source from the content-addressed store, hash-verified

53 let dragStartWidth = 0
54
55 const handleMouseDown = (e: MouseEvent) => {
56 e.preventDefault()
57 e.stopPropagation()
58 setIsDragging(true)
59 document.body.style.cursor = 'col-resize'
60 document.body.style.userSelect = 'none'
61 dragStartX = e.clientX
62 dragStartWidth = leftPanelWidth()
63 }
64
65 const handleMouseMove = (e: MouseEvent) => {
66 if (!isDragging()) return

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…