diff --git a/src/components/viewtypes/ListViewTable.tsx b/src/components/viewtypes/ListViewTable.tsx index a6a8f69..d3ff3e0 100644 --- a/src/components/viewtypes/ListViewTable.tsx +++ b/src/components/viewtypes/ListViewTable.tsx @@ -35,6 +35,7 @@ const ListViewTable = ({ cacheImages, autoHeight, listType, + // onScroll, nowPlaying, }: any) => { const history = useHistory(); @@ -73,6 +74,7 @@ const ListViewTable = ({ affixHorizontalScrollbar shouldUpdateScroll={false} style={{ fontSize: `${fontSize}px` }} + // onScroll={onScroll} > {columns.map((column: any) => ( (null); @@ -61,6 +62,7 @@ const ListViewType = ( window.clearTimeout(window.resizeInterval); window.resizeInterval = window.setTimeout(() => { setShow(true); + // tableRef?.current?.scrollTop(Math.abs(scrollY)); }, 500); setHeight(wrapperRef.current ? getHeight(wrapperRef.current) : 200); @@ -110,6 +112,8 @@ const ListViewType = ( ? currentScroll - scrollDistance : currentScroll ); + + // setScrollY(currentScroll); }, 50); return () => clearInterval(interval); @@ -273,6 +277,7 @@ const ListViewType = ( cacheImages={cacheImages} listType={listType} nowPlaying={rest.nowPlaying} + // onScroll={(e) => setScrollY(tableRef.current.scrollY)} /> )}