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) 816 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(void 0); return (t) => { r.current !== void 0 && window.cancelAnimationFrame(r.current); const e = t.currentTarget, c = e.scrollTop; n.forEach((l) => { const o = l.current; o && o !== e && (r.current = window.requestAnimationFrame(() => { o.scrollTop = Math.round(c); })); }); }; }; export { i as useVerticalScrollSync };