@daysnap/utils
Version:
16 lines (14 loc) • 371 B
TypeScript
interface MousewheelScrolling {
(result: {
direction: 'down' | 'up';
delta: number;
}): void;
}
interface MousewheelOptions {
scrollingSpeed?: number;
scrollDelay?: number;
}
declare function mousewheel(scrolling: MousewheelScrolling, options?: MousewheelOptions): {
listener: (e: any) => false | undefined;
};
export { mousewheel };