UNPKG

@progress/kendo-react-pivotgrid

Version:

React PivotGrid (also called Pivot Table) can be data-bound to an OLAP service and customized extensively. KendoReact PivotGrid package

25 lines (24 loc) 814 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import * as a from "react"; const i = (...n) => { const r = a.useRef(); return (o) => { r.current !== void 0 && window.cancelAnimationFrame(r.current); const e = o.currentTarget, c = e.scrollLeft; n.forEach((l) => { const t = l.current; t && t !== e && (r.current = window.requestAnimationFrame(() => { t.scrollLeft = Math.round(c); })); }); }; }; export { i as useHorizontalScrollSync };