UNPKG

@atlaskit/pragmatic-drag-and-drop-auto-scroll

Version:

An optional Pragmatic drag and drop package that enables automatic scrolling during a drag operation

9 lines (8 loc) • 478 B
import type { AllDragTypes, CleanupFn, MonitorArgs } from '@atlaskit/pragmatic-drag-and-drop/types'; import type { ElementAutoScrollArgs, WindowAutoScrollArgs } from '../internal-types'; export declare function makeApi<DragType extends AllDragTypes>({ monitor, }: { monitor: (args: MonitorArgs<DragType>) => CleanupFn; }): { autoScroll: (args: ElementAutoScrollArgs<DragType>) => CleanupFn; autoScrollWindow: (args?: WindowAutoScrollArgs<DragType>) => CleanupFn; };