Skip to content
Open
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": "minor",
"comment": "feat(react-virtualizer): Add improved scrollTo with iterative corrections for dynamic lists",
"packageName": "@fluentui-contrib/react-virtualizer",
"email": "dmytrokirpa@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ export type VirtualizerScrollViewDynamicProps = ComponentProps<
* Enables custom scroll anchor behavior
*/
enableScrollAnchor?: boolean;
/**
* Enables improved scrollTo behavior with iterative corrections for dynamic content.
* When disabled (default), uses the legacy `scrollToItemDynamic` implementation.
* When enabled, uses `useScrollToItemDynamic` hook which provides:
* - Smooth scrolling with automatic position correction after animation completes
* - Iterative corrections to handle dynamically sized items that resize during render
* - Temporarily disables useMeasureList scroll compensation during scrollTo operations
* to prevent conflicting scroll adjustments
* @default false
*/
enableScrollToCorrections?: boolean;
};

export type VirtualizerScrollViewDynamicState =
Expand Down
Loading