Custom Horizontal Scrollable Tab Strip freezes / fails to shift left-side tabs right when closing tabs mid-stack (Windows 10)

There is a severe layout calculation bug in Brave’s custom horizontal scrollable tab strip implementation that does not occur in stock Chrome. When a user has a massive amount of tabs open (overflowing the view) using a medium/large fixed tab width on a scrollable strip, closing a tab located in the middle of the stack via middle-mouse click or the X button completely freezes the container logic.
Instead of cleanly shifting the large cluster of tabs on the left over to the right to bridge the empty space and bring the rest of the open session back into view, the browser’s custom layout container locks up. It completely hides or blanks out the tab strip, leaving it stuck in a broken visual state until a physical mouse movement or window resize forces a manual UI redraw.

Crucial Telemetry Discovery:
This layout glitch does not happen if tabs are closed at the absolute left-most or right-most boundaries of the scrollable block. The layout freeze only triggers when unrendering a tab from the middle of a split container, proving that Brave’s custom Use scrollable tab strip backend fails to recalculate the left-to-right alignment math cleanly when a deletion happens mid-stack.

Steps to Reproduce:

  1. Open Brave on Windows 10. Ensure Use scrollable tab strip is enabled in brave://settings/appearance and set to a fixed medium/large width.
  2. Open a massive volume of tabs so that the horizontal tab strip is completely full and scrolling mechanics are heavily engaged.
  3. Place the mouse cursor over an open tab in the middle of the massive stack.
  4. Close the tab using either a middle-mouse click or by clicking the X button, keeping your mouse perfectly stationary afterward.
  5. Observe: The tabs on the left fail to slide right to fill the space, freezing or hiding elements on the tab bar.
  6. Move the mouse cursor or close a tab at the absolute edge of the strip, and observe the container instantly re-rendering and snapping the left-side tabs right to correct the layout gap.

Expected Result:
Closing a mid-stack tab should allow the tabs on the left to smoothly shift over to the right to fill the empty space cleanly without dropping frames, hanging the container, or requiring a mouse-movement trigger.
Actual Result:
The custom layout container completely freezes, failing to execute the left-to-right alignment update until forced by external mouse input events.
Brave Version Info: 1.97.59 Chromium: 155.0.8059.85 (Official Build) (64-bit)
Reproducibility:
• With Brave Shields disabled? Yes
• With Brave Rewards disabled? Yes
• In the latest version of stock Chrome? No (This is isolated strictly to Brave’s custom scrollable tab strip rebuild)