UNPKG

@xzdarcy/react-timeline-editor

Version:

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

9 lines (8 loc) 469 B
/// <reference types="react" /> 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; };