MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / handleDragStart

Function handleDragStart

app/components/Resizable.tsx:21–26  ·  view source on GitHub ↗
(e: React.MouseEvent<HTMLDivElement>)

Source from the content-addressed store, hash-verified

19 const previousDragPosition = useRef<{ x: number; y: number } | null>(null);
20
21 const handleDragStart = (e: React.MouseEvent<HTMLDivElement>): void => {
22 previousDragPosition.current = {
23 x: e.clientX,
24 y: e.clientY,
25 };
26 };
27
28 const handleDrag = (e: MouseEvent) => {
29 if (previousDragPosition.current == null) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected