banthagroup / fslightbox-vue

Basic version of Fullscreen Lightbox for Vue.js. Website: https://fslightbox.com/vue
MIT License
41 stars 3 forks source link

Feature Request: Use intrinsic dimensions when zooming #23

Open Carlwirkus opened 4 years ago

Carlwirkus commented 4 years ago

On the first zoom, the lightbox should scale the image to the intrinsic image dimensions. A 2000px wide image will be scaled down to a % of the screen width and then scaled in resulting in blurry images. This is particularly bad on mobile where the images will only render as < 400px wide. https://photoswipe.com/ has a good implementation of this.