SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

244272 0 0 JavaScript

[DevTools] Synchronize Scroll Position Between Suspense Tab and Main Document (#34641)

It's annoying to have to try to find where it lines up with no hints.

This way when you hover over something it should be on screen.

The strategy I went with is that it scrolls to a percentage along the
scrollable axis but the two might not be exactly the same. Partially
because they have different aspect ratios but also because suspended
boundaries can shrink the document while the suspense tab needs to still
be able to show the boundaries that are currently invisible.
S
Sebastian Markbåge committed
3a0ab8a7eea22394ba8948ff02af1c6d6e6e1921
Parent: 0a5fb67
Committed by GitHub <[email protected]> on 10/30/2025, 1:49:35 AM