Merge W1r2: drop redundant post-correction re-baseline (dawn/webkit-compensation @ c9e5bf3c)

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>

* origin/dawn/webkit-compensation:
  fix(desktop): drop redundant post-correction re-baseline (single-writer)
This commit is contained in:
npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d
2026-07-08 19:04:15 -04:00
co-authored by Tyler Longwell
@@ -704,9 +704,10 @@ export function useAnchoredScroll({
});
if (target !== null) {
container.scrollTo({ top: target, behavior: "auto" });
// Re-baseline after the correction so the next RO batch measures shift
// from where we just pinned, not the pre-correction position.
readingAnchorRef.current = snapshotReadingAnchor(container);
// No re-baseline here: the rAF loop is the single writer of
// `readingAnchorRef` and re-snapshots from live geometry next frame
// (~16ms), which already reflects this correction. Writing it here too
// would make the "single writer" invariant a lie for no gain.
}
});
// Observe every timeline row (not the content wrapper): a