Adjusting Zoom Level
-
Hi there,
I noticed that when I click on a photo in the lightbox, the photo zooms too big (wider than the viewport is wide).
I would like to have the photo always zoom to screen width.During my research I found this: https://photoswipe.com/adjusting-zoom-level/
Is it possible that I can make a custom adjustment on your plugin to set the zoom level?
I guess this would be the right setting to zoom the image always to viewport width: https://photoswipe.com/adjusting-zoom-level/#initial-and-secondary-zoom-level-are-equalEdit: I just found the right setting, which should solve the problem: https://photoswipe.com/adjusting-zoom-level/#open-images-in-fill-state
If I could setinitialZoomLevel: 'fit', secondaryZoomLevel: 'fill',
that should solve the problem!
Can you maybe tell me the file where I have to adjust this?
Thank you!
- The topic ‘Adjusting Zoom Level’ is closed to new replies.