diff --git a/examples/basic.tsx b/examples/basic.tsx index d63f27d..2f14a20 100644 --- a/examples/basic.tsx +++ b/examples/basic.tsx @@ -10,8 +10,7 @@ const MyItem: React.ForwardRefRenderFunction = ({ id }, ref) => ( { @@ -45,7 +44,7 @@ const TYPES = [ ]; const onScroll: React.UIEventHandler = (e) => { - // console.log('scroll:', e.currentTarget.scrollTop); + console.log('scroll:', e.currentTarget.scrollTop); }; const Demo = () => { @@ -54,12 +53,6 @@ const Demo = () => { const [type, setType] = React.useState('dom'); const listRef = React.useRef(null); - React.useEffect(() => { - listRef.current.scrollTo({ - index: 99999999, - }); - }, []); - return (