~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1

feat(ipad): add animated column snapping

Closed
Closed geesawra.industries opened this issue 1 comment
priority/lownice-to-have

Add magnetic snapping to the horizontal iPad columns so a scroll does not settle with a column half visible.

Required behavior:

  • Use the actual visible width when the user releases the scroll. Exclude the gap between columns from the threshold.
  • Advance to the next or previous column only when more than 50% of that column is visible.
  • At 50% or less, settle back to the current alignment. A fast flick must not override this rule through projected momentum.
  • Animate the settling motion smoothly, with no sudden jump or clip. Respect Reduce Motion.
  • Preserve vertical scrolling, arrow navigation, column reordering, feed insertion, and closing columns.
  • Support two, three, and four visible columns, window resizing, and narrow windows with the existing 320-point minimum column width.

Preserved prototype: branch feat/ipad-column-snapping, commit a400249. The prototype is deferred and removed from main.

The prototype uses a native SwiftUI ScrollTargetBehavior and retains live scroll geometry without redrawing the column views on every scroll update. It includes threshold tests and an iPad UI test for fast flicks, slow releases, both directions, and arrow navigation.

Validation before deferral: all 16 PadColumnTests and the focused iPad gesture UI test passed. Review the animation and drag feel on a physical iPad before merging a future version. Cover exact halfway positions, interrupted scrolling, the final column, and narrow windows.

Implemented.