Skip to main content
cngx-src documentation

ScrollState

Interface

projects/common/data/recycler/scroll-observer.ts

Import#

import { ScrollState } from '@cngx/common/data'

Description#

Reactive scroll state of a container element. scrollTop is read synchronously on each scroll event so the rendered range tracks scroll without an extra frame of latency; Angular's signal scheduler coalesces a burst of events into one recompute per frame. clientHeight updates from a ResizeObserver, not on scroll.

Index#

Instance Properties#

clientHeight#Signal
Readonly
element#Signal
Readonly

The resolved scroll container element, or null if not yet resolved.

scrollTop#Signal
Readonly