@vue-dnd-kit/core
Version:
Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces
14 lines (13 loc) • 504 B
TypeScript
import { Ref } from 'vue';
import { IAutoScrollOptions } from '../types';
export type { IAutoScrollOptions };
/**
* Auto-scroll when the drag overlay is near container edges. Element scroll only.
*
* @param container - Ref to the scrollable element
* @param options - threshold, speed, disabled
* @returns { isScrolling }
*/
export declare const makeAutoScroll: (container: Ref<HTMLElement | null>, options?: IAutoScrollOptions) => {
isScrolling: import('vue').ShallowRef<boolean, boolean>;
};