You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the new image lightbox seems to zoom to an arbitrary 300% when clicking the image, which is somewhat surprising compared to other image views, such as browsers when they display an image file.
I think it would be more natural to match the behaviour of other image viewers:
For small images that fit in the viewport, display them at 100% by default, and clicking the image is disabled
For large images that would overflow the viewport, shrink to fit by default, and enable clicking the image to toggle between 100% and shrink to fit
The text was updated successfully, but these errors were encountered:
I've created a draft PR. It seems to work great, there is just one thing missing - the max and min zoom is calculated based on the size info from the event but it seems that this data can be missing. I am not really sure what to do in that case
Edit: I guess we can always fall back to the current behaviour
At the moment, the new image lightbox seems to zoom to an arbitrary 300% when clicking the image, which is somewhat surprising compared to other image views, such as browsers when they display an image file.
I think it would be more natural to match the behaviour of other image viewers:
The text was updated successfully, but these errors were encountered: