Skip to content

Commit

Permalink
Merge branch 'master' into tabs-new-ownerState
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored Nov 28, 2024
2 parents 613752d + ca7dd3d commit cfc10b6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,14 @@ export const useGridVirtualScroller = () => {
);

const triggerUpdateRenderContext = useEventCallback(() => {
const scroller = scrollerRef.current;
if (!scroller) {
return undefined;
}

const newScroll = {
top: scrollerRef.current!.scrollTop,
left: scrollerRef.current!.scrollLeft,
top: scroller.scrollTop,
left: scroller.scrollLeft,
};

const dx = newScroll.left - scrollPosition.current.left;
Expand Down

0 comments on commit cfc10b6

Please sign in to comment.