Skip to content

DragManagerEdgeScroll

Unofficial

State of the automatic scrolling that runs while a drag hovers near the edge of a scrollable element.

Import:

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

Signature:

export interface DragManagerEdgeScroll

Properties

PropertyTypeDescription
dir'down' | 'left' | 'right' | 'up'The direction the target element is being scrolled in.
framenumberThe handle of the pending animation frame that advances the scroll.
speednumberThe scroll speed in pixels per millisecond, from 0 to 1, growing as the pointer nears the edge.
targetElElementThe scrollable element being scrolled.
winWindowThe window whose animation frames drive the scroll.

Links to this page: