mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-11-10 08:27:35 +00:00
Image documents (screenshots, diagrams, receipts) could only be viewed at fit size, so any fine detail was unreadable. This adds a proper viewer: - Scroll to zoom toward the cursor, drag to pan once zoomed, double-click to zoom in at that point (or reset), and a small +/-/reset control with a live zoom percentage. - Panning is clamped so the image can't be flung off-screen, and zooming fully out always snaps back to a clean centered fit. The transform math (zoom-to-cursor, translation clamping) lives in lib/image-zoom.ts as pure functions with unit tests; the component just wires pointer/wheel events to it. The keyboard-accessible zoom buttons back the pointer gestures. Existing load/retry/cached-blob fallback behavior is unchanged. Tests: lib/image-zoom.test.ts (10 passing). Type-checks and Biome clean. |
||
|---|---|---|
| .. | ||
| browser-extension | ||
| docs | ||
| mcp | ||
| memory-graph-playground | ||
| raycast-extension | ||
| web | ||