"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../_util/raf.js"),S=require("../utils/isFirefox.js"),h=require("./useOriginScroll.js");function F(u,a,f,c){let l=0,r=null,n=null,o=!1;const s=h.default(a,f);function d(e){if(!u.value)return;i.default.cancel(r);const{deltaY:t}=e;l+=t,n=t,!s(t)&&(S.default||e.preventDefault(),r=i.default(()=>{c(l*(o?10:1)),l=0}))}function p(e){u.value&&(o=e.detail===n)}return[d,p]}exports.default=F;
