Repository navigation
Commit 66df205
fix(web): send-anchor scroll also respects Reduce Motion
Sending a message while scrolled away from the end glided the new
message to the top even with Reduce Motion on. The anchor scroll now
reads the preference when it runs and jumps instead; settling still
waits for `scrollend` or the fallback timer, which an instant scroll
also triggers.
Also cover held PageUp/PageDown under reduced motion: holding the key
is the user moving the page, so it stays continuous and stops on
release.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 105bfb9 commit 66df205
2 files changed
Lines changed: 31 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6757 | 6757 | | |
6758 | 6758 | | |
6759 | 6759 | | |
| 6760 | + | |
| 6761 | + | |
6760 | 6762 | | |
6761 | 6763 | | |
6762 | | - | |
| 6764 | + | |
6763 | 6765 | | |
6764 | 6766 | | |
6765 | 6767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
282 | 286 | | |
283 | | - | |
284 | | - | |
| 287 | + | |
| 288 | + | |
285 | 289 | | |
286 | | - | |
| 290 | + | |
287 | 291 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
291 | 295 | | |
292 | | - | |
293 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
294 | 299 | | |
295 | 300 | | |
296 | 301 | | |
| |||
0 commit comments