vue-gallery icon indicating copy to clipboard operation
vue-gallery copied to clipboard

close (x) button needs to be clicked twice after swipe action on mobile

Open vesper8 opened this issue 6 years ago β€’ 2 comments

I tried your own demo on mobile just now. Arrows work well, swipe works well. I noticed if you click on an image and go into the Lightbox carousel and immediately click the X to close, it works as intended, if however you do the same but perform a swipe action at least once, then clicking the X button does nothing, you have to click it a 2nd time before the Lightbox will close

vesper8 avatar Dec 02 '19 11:12 vesper8

Yeah, I noticed the same problem! Would be great if it would be fixed. Gallery is pretty awsome :) But this would be bad for productive enviroment.

Edit: Seems like the "hover" or "focus" is triggered on touch display at first click. On desktop mouseover is activating the button.

consuman avatar Feb 13 '20 01:02 consuman

I'm handling it with jquery for now.. still hoping it gets fixed at some point

    $(document).on('click', '#blueimp-gallery a.close', () => {
      if (this.galleryImageIndex !== null) {
        this.galleryImageIndex = null;
      }
    });

vesper8 avatar Feb 03 '21 15:02 vesper8