File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/virtual-core/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/virtual-core ' : patch
3+ ---
4+
5+ Revert "Adapt default logic to adjust scroll position only on backward scrolling (#1002 )"
Original file line number Diff line number Diff line change @@ -814,8 +814,7 @@ export class Virtualizer<
814814 if (
815815 this . shouldAdjustScrollPositionOnItemSizeChange !== undefined
816816 ? this . shouldAdjustScrollPositionOnItemSizeChange ( item , delta , this )
817- : this . scrollDirection === 'backward' &&
818- item . start < this . getScrollOffset ( ) + this . scrollAdjustments
817+ : item . start < this . getScrollOffset ( ) + this . scrollAdjustments
819818 ) {
820819 if ( process . env . NODE_ENV !== 'production' && this . options . debug ) {
821820 console . info ( 'correction' , delta )
You can’t perform that action at this time.
0 commit comments