@atlaskit/pragmatic-drag-and-drop-auto-scroll
Version:
An optional Pragmatic drag and drop package that enables automatic scrolling during a drag operation
10 lines (9 loc) • 483 B
TypeScript
import type { AllDragTypes, Input } from '@atlaskit/pragmatic-drag-and-drop/types';
import { type UnsafeOverflowAutoScrollArgs } from './types';
export declare function tryOverflowScrollElements<DragType extends AllDragTypes>({ input, source, entries, timeSinceLastFrame, underUsersPointer, }: {
input: Input;
timeSinceLastFrame: number;
underUsersPointer: Element | null;
source: DragType['payload'];
entries: UnsafeOverflowAutoScrollArgs<DragType>[];
}): void;