@@ -971,7 +971,7 @@ export class SelectContentState {
971971 itemAlignedFallback = $state ( false ) ;
972972 itemAlignedSideOffset = $state ( 0 ) ;
973973 #itemAlignedRaf: number | null = null ;
974- #secondPassScheduled = false ;
974+
975975
976976 constructor ( opts : SelectContentStateOpts , root : SelectRoot ) {
977977 this . opts = opts ;
@@ -1050,7 +1050,6 @@ export class SelectContentState {
10501050 if ( this . opts . position . current !== "item-aligned" || ! this . root . opts . open . current ) return ;
10511051 if ( ! this . isPositioned ) return ;
10521052 this . #cancelItemAlignedRaf( ) ;
1053- this . #secondPassScheduled = false ;
10541053 afterTick ( ( ) => {
10551054 if ( this . opts . position . current !== "item-aligned" || ! this . root . opts . open . current )
10561055 return ;
@@ -1129,28 +1128,7 @@ export class SelectContentState {
11291128
11301129 this . itemAlignedSideOffset = clampedFloatingTop - floatingRect . top ;
11311130 this . itemAlignedFallback = false ;
1132-
1133- // Schedule one deferred re-check for scroll button layout changes.
1134- // afterTick waits for Svelte flush (scroll button DOM updates),
1135- // RAF ensures layout is stable before re-measuring.
1136- if ( ! this . #secondPassScheduled) {
1137- this . #secondPassScheduled = true ;
1138- afterTick ( ( ) => {
1139- if (
1140- this . opts . position . current !== "item-aligned" ||
1141- ! this . root . opts . open . current
1142- ) {
1143- this . root . itemAlignedPositioningActive = false ;
1144- return ;
1145- }
1146- this . #itemAlignedRaf = this . domContext
1147- . getWindow ( )
1148- . requestAnimationFrame ( this . #updateItemAlignedPositioning) ;
1149- } ) ;
1150- } else {
1151- // Second pass complete
1152- this . root . itemAlignedPositioningActive = false ;
1153- }
1131+ this . root . itemAlignedPositioningActive = false ;
11541132 } ;
11551133
11561134 onpointermove ( _ : BitsPointerEvent ) {
0 commit comments