XiongAmao / vue-easy-lightbox

A tiny lightbox component for Vue.js 3.0 :tada::tada: https://xiongamao.github.io/vue-easy-lightbox/
MIT License
420 stars 69 forks source link

Both zoomDisabled and moveDisabled do not work, Move and Zoom are always enabled. #120

Closed simpleport closed 1 year ago

simpleport commented 1 year ago

Hi there,

This plugin is very cool, but I am running into some issues with it.

With :zoomDisabled set to true and :moveDisabled set to true, I still am able to zoom and move the image.

However, the :loop prop works exactly as expected, and I am able to set it to true to loop and false to turn looping off.

Check out my gist here to test for yourself: https://gist.github.com/simpleport/9a3a0468849439f2ee92f7c98ea9d3dd

XiongAmao commented 1 year ago

Hi,

vue-easy-lightbox does not have zoomDisabled props.

HTML tags and attribute names are case-insensitive (docs here), this is the correct usage:

 <vue-easy-lightbox :move-disabled="true"></vue-easy-lightbox>