Domanda

On touch screen, I can close the fancybox only by using the close button from the top helper-bar, or by clicking outside the image. but not from the single close button.

sample link - http://vasterad.com/themes/nevia/single-project.html (click\touch the large image)

JS code - (Using fancyBox.min v2.1.3)

$('[rel=fancybox-gallery]').fancybox({
    openEffect  : 'elastic',
    closeEffect : 'elastic',
    nextEffect  : 'elastic',
    prevEffect  : 'elastic',

    helpers : {
        title : {
            type : 'inside'
        },
        buttons : {},
        overlay : {
            css : {
                'background' : 'rgba(0, 0, 0, 0.85)'
            }
        }
    },

});
È stato utile?

Soluzione

Upgrading to the latest fancy-box v2.1.5 solved the problem!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top