banthagroup / fslightbox

An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.
MIT License
351 stars 30 forks source link

[Pro] Feature Request - Data option to disable zoom #140

Closed tcpinski closed 3 years ago

tcpinski commented 3 years ago

Forgive me if there's already documentation on this but I couldn't find anything. Is there an option to disable zoom?

cenda commented 3 years ago

Hi @tcpinski, did you solve your problem? Is there any option to disable buttons from toolbar (except thumbs, this case is described in docs)?

I know about possibility to hide buttons with CSS but zooming after image click remains.

Thanks for your reply.

clapczyn commented 2 years ago

Hi @cenda and @tcpinski

Did you have any luck with this? I'm trying to use fslightbox for html content (I know this is not really the usecase) and it works almost the way I need it.

I just need to disable zoom. I've tried to set zoomIncrement to 0 but that doesn't change anything.

Any tips appreciated! Thanks

edit ok, I am stupid. Just reading the docs would've helped me lot … Works the same as disabeling thumbs:

fsLightboxInstances['monstergallery'].props.disableZoom = true;

dmnkhhn commented 9 months ago

Has this feature been removed? Setting this prop just doesn't to anything on the latest Pro version.