Ionosphere.tv
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

tweak: slower scroll — 0.25x input, 0.95 friction, ±40 clamp

More macOS-like: gentler acceleration, longer coast, lower top speed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+4 -7
+4 -7
apps/ionosphere/src/app/discussion/DiscussionContent.tsx
··· 377 377 378 378 let velocity = 0; 379 379 let raf = 0; 380 - const FRICTION = 0.92; 381 - const MIN_VELOCITY = 0.5; 380 + const FRICTION = 0.95; // slower decay = longer coast, more macOS-like 381 + const MIN_VELOCITY = 0.3; 382 382 383 383 const coast = () => { 384 384 velocity *= FRICTION; ··· 390 390 const onWheel = (e: WheelEvent) => { 391 391 if (Math.abs(e.deltaY) > Math.abs(e.deltaX)) { 392 392 e.preventDefault(); 393 - // Add wheel delta to velocity (trackpad gives small frequent deltas, mouse gives large ones) 394 - velocity += e.deltaY * 0.4; 395 - // Clamp velocity 396 - velocity = Math.max(-60, Math.min(60, velocity)); 397 - // Start coasting if not already 393 + velocity += e.deltaY * 0.25; // gentler input scaling 394 + velocity = Math.max(-40, Math.min(40, velocity)); // lower clamp 398 395 if (!raf) raf = requestAnimationFrame(coast); 399 396 } 400 397 };