Skip to content

0.9.4: zoom into images, Close closes them - #39

Merged
Ege-BULUT merged 2 commits into
mainfrom
zoom-preview
Oct 27, 2026
Merged

Ege-BULUT merged 2 commits into
mainfrom
zoom-preview

Conversation

@Ege-BULUT

Copy link
Copy Markdown
Owner

An image opened full screen now zooms and pans, on the web, the desktop app and the phone:

  • the mouse wheel, a trackpad pinch, two fingers or a double tap zoom in on the point under them (up to 8×)
  • once zoomed in, a drag moves the image about; a double tap zooms back out
  • a tap beside the image, Escape, back or Close closes it

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 files checks wheel, drag, pinch, double click, Close (pressed and held), a click beside it and Escape; test/android/paste.mjs pinches and taps Close on an emulator (14/14). Unit 78/78, browser e2e 57/57.

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.
@Ege-BULUT
Ege-BULUT merged commit 8a117ec into main Oct 27, 2026
1 check passed
@Ege-BULUT
Ege-BULUT deleted the zoom-preview branch October 27, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant