Commit 9f0cd15
committed
fix(scanner): scroll to results section instead of page top on history click
- replaced window.scrollTo({ top: 0 }) with scrollIntoView on .results-section
- uses requestAnimationFrame to wait for svelte to render the conditional block1 parent e9ccf27 commit 9f0cd15
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments