Scroll round 3 (owner): fold threshold 64 → 96px (tolerate small peeks)

This commit is contained in:
amosblomqvist
2026-09-14 08:33:39 +03:00
parent 2e20bc6298
commit b2a72136e0
+6 -4
View File
@@ -42,10 +42,12 @@ const COLUMN = "mx-auto w-full max-w-none px-6";
const DOCK = "mx-auto w-full max-w-[46rem] px-4"; const DOCK = "mx-auto w-full max-w-[46rem] px-4";
// The dock overlay's gradient band (h-24) — part of the reserved tail. // The dock overlay's gradient band (h-24) — part of the reserved tail.
const GRADIENT_H = 96; const GRADIENT_H = 96;
// Fold thresholds (owner, scroll round 1): pixel distance from the bottom — // Fold thresholds (owner, scroll round 1, tuned round 3): pixel distance
// position, not velocity. Leave the bottom → the box folds (visual only); // from the bottom — position, not velocity. Leave the bottom → the box
// reach it again → it re-opens. The dead band absorbs trackpad drift. // folds (visual only); reach it again → it re-opens. 96 (was 64, owner
const COLLAPSE_DIST = 64; // round 3) tolerates a small peek upward without folding; the dead band
// vs EXPAND_DIST absorbs trackpad drift.
const COLLAPSE_DIST = 96;
const EXPAND_DIST = 16; const EXPAND_DIST = 16;
/** /**