UNPKG

@opensig/opendesign

Version:

21 lines (20 loc) 648 B
/** * @description 滚动状态机配置 */ export interface ScrollStateOpts { /** 滚动停止后的重置延迟(毫秒) */ resetDelay?: number; } /** * @description 滚动状态机——管理 isScrolling 标志和 RAF 一致化 * * 滚动中 isScrolling=true,停止后 resetDelay 毫秒重置为 false。 * 用于 pointer-events 优化和 RAF 一致化。 * @param opts 配置项 * @returns isScrolling ref + markScrolling 方法 + cleanup */ export declare function useScrollState(opts?: ScrollStateOpts): { isScrolling: import('vue').Ref<boolean, boolean>; markScrolling: () => void; cleanup: () => void; };