Commit e7900ca
fix(ux): retry scroll with requestAnimationFrame until DOM ready
Replaces fixed 300ms setTimeout with rAF loop that retries
until #treinos-pessoais anchor exists in DOM. Eliminates
race condition on slow devices / slow RSC renders.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e49ed5f commit e7900ca
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments