Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Ensure IO buffer is ignored in the correct direction (remove, don't add)",
"packageName": "@fluentui-contrib/react-virtualizer",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export function useVirtualizer_unstable(
// Minus from original before position
measurementPos -= overflowAmount;
// Ignore buffer size (IO offset)
measurementPos += bufferSize;
measurementPos -= bufferSize;
// Calculate how far past the window bounds we are (this will be zero if IO is within window)
const hOverflow =
latestEntry.boundingClientRect.bottom -
Expand Down