1681-engine / ui / clampScroll
Function: clampScroll() ​
ts
function clampScroll(
offset,
content,
viewport
): number;Defined in: src/ui/layout/scroll.ts:9
A scroll offset kept between the top and the last full window of content.
Parameters ​
| Parameter | Type |
|---|---|
offset | number |
content | number |
viewport | number |
Returns ​
number