Commit 6b6725d
committed
feat(reader): scroll 3/4 viewport on PgDn/PgUp
Adds PageDown/PageUp scrolling to the reader's scroll
container, sized at Math.round(clientHeight * 0.75) so the
user keeps ~25% overlap with the previously visible content
between presses (Vimium's d/u idiom).
- Reader.svelte: extends the existing $effect keydown
listener; preventDefault + stopImmediatePropagation so the
browser's default page-scroll doesn't double-fire.
- KeyboardHelp.svelte: documents PgDn/PgUp in the Reader
section.1 parent 64f34c6 commit 6b6725d
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
0 commit comments