Skip to content

Add touch-first zoom controls to the Memory graph - #30

Merged
hamzamerzic merged 1 commit into
mobius-os:mainfrom
hamzamerzic:fix/memory-pinch-zoom-ui-20260731
Jul 31, 2026
Merged

Add touch-first zoom controls to the Memory graph#30
hamzamerzic merged 1 commit into
mobius-os:mainfrom
hamzamerzic:fix/memory-pinch-zoom-ui-20260731

Conversation

@hamzamerzic

Copy link
Copy Markdown
Contributor

Summary

  • implement two-pointer pinch zoom anchored between the fingers on both Memory graph views
  • add accessible zoom and reset controls with responsive gesture guidance
  • keep the map-color legend compact on phones and reduce header crowding on small screens
  • cover anchored scaling, pinch movement, and zoom bounds with focused tests

Why

The graph disabled native touch gestures but only tracked one pointer, so phone pinch gestures were swallowed instead of changing the graph scale. The fixed interaction owns all active pointers and keeps the graph point between the fingers stable while zooming and panning.

Testing

  • node --test tests/test_graph_viewport.mjs (3 passed)
  • pytest -q (106 passed)
  • app validation (0 errors, 0 warnings)
  • rendered at desktop and phone sizes; exercised zoom/reset controls, note opening, and the local graph flow

Co-authored-by: Möbius Agent <mobius-agent@users.noreply.github.com>
@hamzamerzic hamzamerzic added the bug Something isn't working label Jul 31, 2026
@hamzamerzic
hamzamerzic merged commit e04321d into mobius-os:main Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant