@snapdrag/plugins
Version:
Plugins for Snapdrag drag and drop library
15 lines (12 loc) • 369 B
TypeScript
import { PluginType } from '@snapdrag/core';
type AxisConfig = {
threshold?: number;
speed?: number;
distancePower?: number;
};
type ScrollerConfig = {
x?: AxisConfig | boolean;
y?: AxisConfig | boolean;
};
declare function createScroller(config: ScrollerConfig): (container: HTMLElement | Window | null) => PluginType;
export { createScroller };