aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index aab07da..bb4520f 100644
--- a/src/app.js
+++ b/src/app.js
@@ -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