lucaspulliese / vue-cool-lightbox

Vue.js lightbox inspired by fancybox.
https://vue-cool-lightbox.lucaspulliese.com
340 stars 54 forks source link

Double clicking the darkened area inside lightbox make the current slide class disappear #27

Closed jd1378 closed 4 years ago

jd1378 commented 4 years ago

Hi I thought this should be a bug so maybe look into it? when the lightbox is visible , just double click the darkened area (around the current picture) and the current slide loses the cool-lightbox__slide--current class , which shouldn't be the case and it becomes less visible. also it would be nice to use user-select: none on the picture as well, double clicking around makes them highlighted (blue selection highlight) which I think looks bad (I noticed the draggable="false" attribute, but it's not enough) tell me if you need a gif or a limited case to reproduce this issue.

jd1378 commented 4 years ago

Sorry , this was my mistake to happen, nothing wrong with your component. (still ,the user-select: none suggestion is good if you do I guess)