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

PropertyTypeDescription
clientHeightnumberVisible height of the scrollable area (viewport height).
clientWidthnumberVisible width of the scrollable area (viewport width).
heightnumberTotal scrollable height of the content.
leftnumberHorizontal scroll offset.
topnumberVertical scroll offset.
widthnumberTotal scrollable width of the content.

Links to this page: