Repository navigation
Commit 17055c4
committed
fix(app): fix scroll jump during fast upward scrolling
preserveScroll used a stale beforeTop captured at event time, but by
the rAF callback the user had scrolled further. Reset to beforeTop+delta
jumped the viewport forward by a page or more.
Fix: use el.scrollTop += delta (current position) instead of the stale
capture, and temporarily disable overflow-anchor to prevent double
compensation from the browser's built-in scroll anchoring.
Ref: anomalyco#179961 parent 24918ec commit 17055c4
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments