Skip to content
0

katanakit-js / useIsAtBottom

Function: useIsAtBottom() ​

ts
function useIsAtBottom(threshold?): boolean;

Defined in: src/infrastructure/viewport/viewport.service.ts:142

Checks whether the page is scrolled to (or near) the bottom.

Parameters ​

ParameterTypeDefault valueDescription
thresholdnumber50Pixel tolerance from the bottom (default: 50).

Returns ​

boolean

true if within threshold pixels of the bottom.

Released under the MIT License.