Repository navigation
0.9.4: zoom into images, Close closes them - #39
Merged
Merged
Conversation
An image opened full screen zooms with the wheel, a trackpad pinch, two fingers or a double tap, on the point under it, and pans with a drag once zoomed. Escape closes it. The viewer is rendered on the page itself rather than inside its message: there, the bubble's drag-to-reply took the viewer's presses, so a click on Close with the mouse moved slightly shrank the viewer into the bubble and left it open, and a long press opened the message's menu behind it.
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.
An image opened full screen now zooms and pans, on the web, the desktop app and the phone:
Fixed: in the desktop app a click on Close could leave the image open. The viewer was rendered inside its message, so the bubble's drag-to-reply handled the viewer's presses: with the mouse moved slightly while pressed, the bubble's transform shrank the viewer into the bubble, and on release it came back, still open. A long press on Close also opened the message's menu behind it. The viewer now goes on the page itself (a portal), and its presses stop there.
Tests:
app.e2e.mjs fileschecks wheel, drag, pinch, double click, Close (pressed and held), a click beside it and Escape;test/android/paste.mjspinches and taps Close on an emulator (14/14). Unit 78/78, browser e2e 57/57.