Repository navigation
Inspect linked and pasted images in place with zoom and pan - #2037
Merged
Merged
Conversation
Retained controls use canonical command activation. PhotoSwipe handles only unclaimed arrows inside the active viewer, so Command reference text cannot zoom or pan the image behind it. Fit remains available after wheel or pinch enlargement even when the image originally fit at 100%.
leaf-agent
approved these changes
Oct 8, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 8, 2026
Main's in-place image inspector (#2037) conflicted with this phase's viewer layer: the viewer records its opener with openLayer as it opens, and closing destroys the inspector and empties its stage inside closeLayer, handing the user back to that opener. The drawers keep main's label beside this phase's record of no openedBy. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clicking a screenshot linked to its own file now opens an image viewer inside Leaf, with actual-size zoom, mouse and touch panning, a persistent caption, and focus and scroll restoration on close. Pasted images and interactive offline exports use the same viewer.
PhotoSwipe supplies image manipulation through one lazy module containing its styles. Leaf retains native modality and canonical command activation. Keyboard input cannot manipulate an image behind another dialog. The startup comparison retains 225 requests on both versions and adds approximately 6 KB of eager code; PhotoSwipe is fetched only when inspection opens.
Validated with four browser cases covering live and offline inspection, pasted reply images, and the phone editor; 247 runtime tests; 83 browser framework tests and the browser build check; deterministic vendor rebuilds; and independent desktop, phone, dark-mode, touch, and keyboard review. The examples, authoring instructions, and capture catalogue include the new viewer.