We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d0032 commit 8934c14Copy full SHA for 8934c14
docs/examples/virtual-list-grid.tsx
@@ -27,7 +27,12 @@ const Demo = () => {
27
const [connectObject] = React.useState<any>(() => {
28
const obj = {};
29
Object.defineProperty(obj, 'scrollLeft', {
30
- get: () => null,
+ get: () => {
31
+ if (gridRef.current) {
32
+ return gridRef.current?.state?.scrollLeft;
33
+ }
34
+ return null;
35
+ },
36
set: (scrollLeft: number) => {
37
if (gridRef.current) {
38
gridRef.current.scrollTo({ scrollLeft });
0 commit comments