mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
The image viewer only zoomed with its buttons, scaled the image inside a fixed box so a zoomed image could not be moved, and the area around the image swallowed clicks, so clicking beside it did nothing. Both the Files image viewer and the attachment preview now use one viewer that: - zooms with the wheel, trackpad or two-finger pinch, centred on the pointer, and with a zoom bar at the bottom (-, percentage, +, fit, rotate) - toggles between fit and full size on double-click or double-tap - pans by dragging, or with the arrow keys, while zoomed - closes on a click or tap beside the image, but not after a drag - keeps + / - / 0 / r as shortcuts and Escape to close