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-public-latest';Signature:
export interface DragManagerEdgeScrollProperties
| Property | Type | Description | |
|---|---|---|---|
| dir | 'down' | 'left' | 'right' | 'up' | The direction the target element is being scrolled in. | |
| frame | number | The handle of the pending animation frame that advances the scroll. | |
| speed | number | The scroll speed in pixels per millisecond, from 0 to 1, growing as the pointer nears the edge. | |
| targetEl | Element | The scrollable element being scrolled. | |
| win | Window | The window whose animation frames drive the scroll. |
Links to this page: