tangled
alpha
login
or
join now
danabra.mov
/
rscexplorer
37
fork
atom
A tool for people curious about the React Server Components protocol
rscexplorer.dev/
rsc
react
37
fork
atom
overview
issues
pulls
pipelines
don't steal scroll as embed
danabra.mov
2 months ago
3c229834
ae926a06
+1
-1
1 changed file
expand all
collapse all
unified
split
src
client
ui
FlightLog.tsx
+1
-1
src/client/ui/FlightLog.tsx
···
24
24
cursor >= chunkStart && cursor < chunkStart + lines.length ? cursor - chunkStart : -1;
25
25
26
26
useEffect(() => {
27
27
-
if (activeRef.current) {
27
27
+
if (activeRef.current && document.hasFocus()) {
28
28
activeRef.current.scrollIntoView({ block: "nearest", behavior: "smooth" });
29
29
}
30
30
}, [nextLineIndex]);