fui-fancyui
Version:
FancyUI Libary
17 lines (16 loc) • 450 B
JavaScript
"use client";
import { jsx as n } from "react/jsx-runtime";
import { useRef as c } from "react";
import { ScollAbleBar as a } from "./SrollableBar.style.js";
function m(l) {
const { children: o } = l, r = c(null);
return /* @__PURE__ */ n(a, { onWheel: (e) => {
if (/Mac/i.test(navigator.userAgent))
return;
const t = r.current;
t.scrollLeft += e.deltaY < 0 ? -30 : 30;
}, ref: r, children: o });
}
export {
m as default
};