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. Both signals are updated synchronously inside the same rAF callback — Angular's Signal scheduling coalesces the two writes so consumers evaluate once per frame, not twice.

Index#

Instance Properties#

clientHeight#Signal
Readonly
element#Signal
Readonly

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

scrollTop#Signal
Readonly