Skip to content

1681-engine / ui / scrollIntoView

Function: scrollIntoView() ​

ts
function scrollIntoView(
   offset, 
   start, 
   size, 
   viewport, 
   content
): number;

Defined in: src/ui/layout/scroll.ts:17

The smallest scroll that brings an item (start, size along the scroll axis) fully into view: a list moved by the keyboard follows the focus without jumping when the focus is already visible.

Parameters ​

ParameterType
offsetnumber
startnumber
sizenumber
viewportnumber
contentnumber

Returns ​

number

Released under the MIT License.