kit-scroll

API

[class] KitScrollService

@Injectable

Scroll area helpers. Should be provided on component.

Members

SignatureDescription
refs: KitScrollRefs
get state(): KitScrollState
get stateChanges(): Observable<KitScrollState>
registerRefs(refs: KitScrollRefs)
update()
updateVBar()
updateHBar()

[interface] KitScrollRefs

Members

SignatureDescription
vBar(): HTMLElement
vBarWrapper(): HTMLElement
vWrapper(): HTMLElement
hBar(): HTMLElement
hBarWrapper(): HTMLElement
hWrapper(): HTMLElement

[interface] KitScrollState

Members

SignatureDescription
nativeScrollbarWidth(): number
dragging(): boolean
vBar(): { active: boolean; size: number; position: number; }
hBar(): { active: boolean; size: number; position: number; }