MCPcopy Create free account
hub / github.com/editablejs/editable / handleDragScroll

Function handleDragScroll

packages/ui/src/scroll-area.tsx:709–715  ·  view source on GitHub ↗
(event: React.PointerEvent<HTMLElement>)

Source from the content-addressed store, hash-verified

707 const handleResize = useDebounceCallback(onResize, 10)
708
709 function handleDragScroll(event: React.PointerEvent<HTMLElement>) {
710 if (rectRef.current) {
711 const x = event.clientX - rectRef.current.left
712 const y = event.clientY - rectRef.current.top
713 onDragScroll({ x, y })
714 }
715 }
716
717 /**
718 * We bind wheel event imperatively so we can switch off passive

Callers 1

scroll-area.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…