Commit 81525b6
fix: resolve scroll indicator race condition (#1225)
Use wasAtBottomRef.current (continuously updated by scroll handler)
as the primary check in the MutationObserver callback, falling back
to the prevScrollHeight computation. This prevents the indicator from
briefly appearing when a programmatic scroll and DOM mutation race —
the scroll handler may have already registered "at bottom" even if
prevScrollHeight is stale.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b533587 commit 81525b6
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments