UNPKG

evo-timeline-editor-react

Version:

[![npm version](https://img.shields.io/npm/v/evo-timeline-editor-react?style=flat-square)](https://www.npmjs.com/package/evo-timeline-editor-react)

8 lines (7 loc) 429 B
import { DragEvent, ResizeEvent } from '@interactjs/types/index'; export declare function useAutoScroll(target: React.MutableRefObject<HTMLDivElement>): { initAutoScroll: () => void; dealDragAutoScroll: (e: DragEvent, deltaScroll?: (delta: number) => void) => boolean; dealResizeAutoScroll: (e: ResizeEvent, dir: "left" | "right", deltaScroll?: (delta: number) => void) => boolean; stopAutoScroll: () => void; };