MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / startPointerDrag

Function startPointerDrag

packages/app-core/src/components/TasksCalendar.tsx:177–181  ·  view source on GitHub ↗
(task: VaultTask, e: React.PointerEvent)

Source from the content-addressed store, hash-verified

175 toIsoDateLocal(new Date(today.getFullYear(), today.getMonth(), today.getDate() + n))
176
177 const startPointerDrag = (task: VaultTask, e: React.PointerEvent): void => {
178 if (e.button !== 0) return
179 suppressClickRef.current = false
180 pointerDragRef.current = { task, startX: e.clientX, startY: e.clientY, dragging: false }
181 }
182
183 // Keep the latest reschedule/move callbacks in a ref so the window listeners
184 // can mount once (the parent passes fresh arrows each render).

Callers 1

renderTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected