Skip to content

ScrollMapping

Since v2.13.0

Mapping between native scrollTop (clamped spacer space) and “virtual” scroll position (raw row-content space). See computeScrollMapping.

PropertyTypeDescription
rawContentHeightnumberRaw row-content height in pixels (totalRows * rowHeight or sum of variable heights).
spacerHeightnumberEffective spacer DOM height — min(rawContentHeight, maxSpacerHeight).
viewportHeightnumberViewport height used for computing scrollable extents.
cappedbooleanTrue when rawContentHeight > maxSpacerHeight — fractional mapping is active.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt