diff options
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6625,7 +6625,12 @@ if (INTENT_URI) { window.scrollBy({ top: first, behavior: 'instant' }); coast((px * 3 - first) / TAU); } else { - coast(v + (px * 3) / TAU); + // A notch into a page already moving pushes harder: the faster it + // goes, the more each turn adds (up to 2.5x), so keeping the wheel + // turning winds the speed up instead of settling at a stroll. From + // rest a notch is the same push as ever. + const gain = 1 + Math.min(1.5, Math.abs(v) / 4); + coast(v + (px * 3 * gain) / TAU); } }, { passive: false }); // anything else that moves the page takes over from a coast |
