Skip to content

Commit 81ec84e

Browse files
committed
chore: overscanRowCount 수정
1 parent d1ff24b commit 81ec84e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/ImageListVirtualized/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const ImageListVirtualized = () => {
9696
autoHeight
9797
height={height}
9898
width={width}
99-
overscanRowCount={0}
99+
overscanRowCount={5} // overscanRowCount 속성은 사용자가 스크롤하는 방향으로 추가 행을 렌더링하여 사용자가 가상화된 콘텐츠를 렌더링할 수 있는 것보다 빠르게 스크롤시 깜빡임을 최소화합니다.
100100
isScrolling={isScrolling}
101101
onScroll={onChildScroll}
102102
scrollTop={scrollTop}

src/pages/TextListVirtualized/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const TextListVirtualized = () => {
8787
height={height}
8888
width={width}
8989
isScrolling={isScrolling}
90-
overscanRowCount={0}
90+
overscanRowCount={5} // overscanRowCount 속성은 사용자가 스크롤하는 방향으로 추가 행을 렌더링하여 사용자가 가상화된 콘텐츠를 렌더링할 수 있는 것보다 빠르게 스크롤시 깜빡임을 최소화합니다.
9191
onScroll={onChildScroll}
9292
scrollTop={scrollTop}
9393
rowCount={list.length}

0 commit comments

Comments
 (0)