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

Function getScrollPosition

packages/ui/src/scroll-area.tsx:464–466  ·  view source on GitHub ↗
(pointerPos: number, dir?: Direction)

Source from the content-addressed store, hash-verified

462 }
463
464 function getScrollPosition(pointerPos: number, dir?: Direction) {
465 return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir)
466 }
467
468 if (orientation === 'horizontal') {
469 return (

Callers 1

scroll-area.tsxFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…