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 c860bb4 commit 3aa95b7Copy full SHA for 3aa95b7
1 file changed
src/primitives/Lazy.tsx
@@ -39,8 +39,8 @@ function createLazy<T>(
39
return props.buffer;
40
}
41
const scroll = props.scroll || props.style?.scroll;
42
- if (scroll === 'always') return props.upCount;
43
- if (scroll === 'center') return Math.ceil(props.upCount / 2);
+ if (!scroll || scroll === 'auto' || scroll === 'always') return props.upCount + 1;
+ if (scroll === 'center') return Math.ceil(props.upCount / 2) + 1;
44
return 2;
45
});
46
0 commit comments