UseIsAtTop
katanakit-js / useIsAtTop
Function: useIsAtTop()
Section titled “Function: useIsAtTop()”function useIsAtTop(threshold?): boolean;Defined in: infrastructure/viewport/viewport.service.ts:134
Checks whether the page is scrolled to (or near) the top.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
threshold? |
number |
0 |
Pixel tolerance (default: 0). |
Returns
Section titled “Returns”boolean
true if scrollY <= threshold.