Vertical alignment. "nearest" scrolls minimally (no-op if already in view); "center" snaps the element's center to the viewport center.
interface
WebView.ScrollToOptions
interface ScrollToOptions
- block?: 'end' | 'center' | 'start' | 'nearest'
interface
Vertical alignment. "nearest" scrolls minimally (no-op if already in view); "center" snaps the element's center to the viewport center.