Mobile Pinch Zoom - Dynamic Origin
Summary
Zooming in on images on mobile feels clunky. The main issue is that the zoom origin does not change once zooming has started.
This problem seems worse on a google pixel (chrome/firefox) than an iphone (safari). Unsure why the android is worse, any explanation or help would also be appreciated.
Basic example
Here is a demo showing what I explain below:
using a Google Pixel - hard to zoom where I want using an iPhone - easier to zoom where I want, but still no dynamic origin
LightGallery Demo Try to zoom into the red part of mushroom without your fingers covering it once zoomed, it is quite challenging on my google pixel. Usually one finger ends up on top of the portion of the image I was trying to see.
Photoswipe Demo Select the image of the lake through the window. It is quite easy to zoom into one quadrant of the window in a single gesture.
Motivation
This greatly improves mobile usability. If a user ever tries to pinch zoom, they will likely notice something doesn't feel right.
I use lightGallery via immich-public-proxy to share images. I understand my use case is a "free user".
I wanted to gauge
- How likely would it be for the maintainers to make this change?
- If y'all don't think this will ever be on the roadmap, how likely would you be willing to accept a pull request from me to make this change?
Source: sachinchoolur/lightGallery