Skip to content

Commit

Permalink
docs: back
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Jan 3, 2025
1 parent 636c04a commit c568e8b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const MyItem: React.ForwardRefRenderFunction<any, Item> = ({ id }, ref) => (
<span
ref={ref}
style={{
// height: 30 + (id % 2 ? 0 : 10),
height: 100,
height: 30 + (id % 2 ? 0 : 10),
}}
className="fixed-item"
onClick={() => {
Expand Down Expand Up @@ -45,7 +44,7 @@ const TYPES = [
];

const onScroll: React.UIEventHandler<HTMLElement> = (e) => {
// console.log('scroll:', e.currentTarget.scrollTop);
console.log('scroll:', e.currentTarget.scrollTop);
};

const Demo = () => {
Expand All @@ -54,12 +53,6 @@ const Demo = () => {
const [type, setType] = React.useState('dom');
const listRef = React.useRef<ListRef>(null);

React.useEffect(() => {
listRef.current.scrollTo({
index: 99999999,
});
}, []);

return (
<React.StrictMode>
<div style={{ height: '200vh' }}>
Expand Down

0 comments on commit c568e8b

Please sign in to comment.