Skip to content

Opt-in scroll-snap (one post at a time) #30

@PortableProgrammer

Description

@PortableProgrammer

Proposal

Add an opt-in preference for vertical scroll-snap on the post feed, reusing the gallery's existing scroll-snap-type: both mandatory pattern (src/public/styles.css:786).

Why opt-in

Scroll-snap is divisive UX. Some users love it (TikTok-like browsing); others find it disorienting on long-scroll feeds with mixed-height posts. Default off, and tagged experimental because it may be abandoned during testing if the UX doesn't work well.

Schema

New column pref_postSnapScroll (boolean, default 0).

Implementation

  • When the preference is enabled, set scroll-snap-type: y mandatory on the main feed container
  • Each .post gets scroll-snap-align: start (or center — test both)
  • Apply via a body class toggled by the preference (e.g., body.snap-scroll) so the existing prefs JS pattern works
  • Mark as experimental in the dashboard description so users understand it may be removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexperimentalOpt-in feature that may be removed if it doesn't work out

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions