Skip to content

Commit ce76329

Browse files
committed
cancel check not first row
1 parent f791e68 commit ce76329

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/VirtualTable/BodyGrid.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,6 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
163163
}
164164
});
165165
}
166-
// For non-first row changes, we want to preserve the scroll position
167-
else if (shouldPreserveScroll.current && currentScrollInfo) {
168-
const savedScrollPos = scrollPositionRef.current;
169-
shouldPreserveScroll.current = false;
170-
171-
if (savedScrollPos > 0) {
172-
requestAnimationFrame(() => {
173-
if (listRef.current) {
174-
listRef.current.scrollTo({ top: savedScrollPos });
175-
}
176-
});
177-
}
178-
}
179166

180167
const { start, end, getSize, offsetY } = info;
181168

0 commit comments

Comments
 (0)