API Reference > imodeljs-frontend > Views > Viewport > scroll scroll Method Scroll the view by a given number of pixels. scroll(screenDist: Readonly<WritableXAndY>, options?: ViewChangeOptions): void Parameter Type Description screenDist Readonly<WritableXAndY> distance to scroll, in pixels options ViewChangeOptions Returns - void Defined in core/frontend/src/Viewport.ts Line 1833 Last Updated: 12 June, 2024