Skip to content

ScrollInfo

Unofficial

Information about the editor’s scroll position and dimensions.

Import:

import type { ScrollInfo } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ScrollInfo

Properties

Property Type Description
clientHeight number Visible height of the scrollable area (viewport height).
clientWidth number Visible width of the scrollable area (viewport width).
height number Total scrollable height of the content.
left number Horizontal scroll offset.
top number Vertical scroll offset.
width number Total scrollable width of the content.

Links to this page: