UNPKG

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

Version:

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

8 lines (7 loc) • 398 B
import type { AllDragTypes, CleanupFn, MonitorArgs } from '@atlaskit/pragmatic-drag-and-drop/types'; import { type UnsafeOverflowAutoScrollArgs } from './types'; export declare function makeApi<DragType extends AllDragTypes>({ monitor, }: { monitor: (args: MonitorArgs<DragType>) => CleanupFn; }): { unsafeOverflowAutoScroll: (args: UnsafeOverflowAutoScrollArgs<DragType>) => CleanupFn; };