Changeset d9f60f4 in Klonkt for scripts/klonkt-add-instance.sh

Timestamp:
08/20/2026 11:12:07 AM (3 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
3ccca13
Parents:
96a99bf
Message:

Reader: only snap forward, and give posts twice the top margin

Top margin doubled (2rem -> 4rem on .read-post, with .read-anker's
scroll-margin-top kept in lockstep so the separator line still lands
exactly on the top edge after a snap — that line is the whole point).

Snapping now obeys one rule: only while scrolling DOWN, only to a point
still AHEAD, only within the catch zone. A post you already scrolled
into is never pulled back. Fixes a real bug on the way: the catch zone
was compared as the string '55%' against a number, so the forward
fallback never fired — it is a computed number now. Direction comes
from remembering the last non-zero velocity, because lenis' own
direction is already zero by the time the debounced snap fires.

Co-Authored-By: Claude Fable 5 <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.