Virtual scroll math fix

This commit is contained in:
Dallas Hoffman 2023-09-18 23:00:03 -04:00
parent d4b05ba380
commit f74a60a66b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
const offset = Math.max(0, Math.floor(scrollTop / rowHeight) - paddingRows) * columnCount;
const limit =
Math.min(notesCount - offset, Math.ceil(windowHeight / rowHeight) + paddingRows) *
Math.min(notesCount - offset, Math.ceil(windowHeight / rowHeight) + paddingRows * 2) *
columnCount;
if (offset === notesOffset && limit === notesLimit && notesCount === prevNotesCount) return;