Skip to content

Commit e12e2d9

Browse files
committed
logs
1 parent e697f03 commit e12e2d9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Reader.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ const Reader = ({
313313
scrollAnchor.index,
314314
"start",
315315
)?.[0];
316+
console.log({ scale, viewportsReady });
316317

317318
if (startOffset != null) {
318319
const itemHeight = estimateSize(scrollAnchor.index);
@@ -321,6 +322,12 @@ const Reader = ({
321322
percentage: scrollAnchor.percentageOffsetY,
322323
startOffset: startOffset,
323324
});
325+
console.log({
326+
itemHeight,
327+
percentageY: scrollAnchor.percentageOffsetY,
328+
startOffset,
329+
offset,
330+
});
324331

325332
virtualizer.scrollToOffset(offset, {
326333
align: "center",

0 commit comments

Comments
 (0)