aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-11 20:32:37 -0700
committerAdam Soltys <[email protected]>2026-10-11 20:32:37 -0700
commit8f5f0b5fb1ea24390568b5fdce2af4def7cedef2 (patch)
treede393035f2f5bdb0d85abd6550d4f5874d76fb2d
parentfdaf7137139540d2f8de50b2a42d6ff3c036328b (diff)
downloadcoinosv3-8f5f0b5fb1ea24390568b5fdce2af4def7cedef2.tar.gz
coinosv3-8f5f0b5fb1ea24390568b5fdce2af4def7cedef2.zip
Feed wheel: turning the wheel into a page already moving winds the speed up. Each notch added the same push whatever the speed, so a sustained turn settled at a stroll (the coast's decay ate what each notch added). Now the push scales with the speed on the page, 1x from rest up to 2.5x at a fast coast, so keeping the wheel turning keeps accelerating; a single notch from rest, the reversal and the trackpad path are as before (feed-momentum + feed-wheel-reverse tests green).
Co-Authored-By: Claude Fable 5.1 <[email protected]>
-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