galleria lighbox不在firefox中工作

时间:2016-04-25 10:42:44

标签: jquery firefox lightbox galleria

我正在使用带有lighbox选项的galleria,它可以很好地使用Chrome和其他浏览器,但在mozilla中它不起作用。

<script> 
  jQuery(document).ready(function() {

  // Load the classic theme
  Galleria.loadTheme('js/galleria.classic.min.js');

  // Initialize Galleria
  Galleria.run('#flexy_gallery', {

    showInfo:true,
    showCounter:false,

    // search flickr for "Cantonese food"
    flickr: 'search: cartoon',
    flickrOptions: {
      // sort by interestingness
      sort: 'interestingness-desc'
    },
    description : true , 

  });

  Galleria.configure({
    lightbox: true
  });   




}); 

</script>

我调试了galleria js并发现它进入了mozilla fire fox中的一个滑动功能,并且由于它没有打开灯箱

if ( swipe ) {

  //Mozilla goes inside this loop and due to this it does not call **_show** function


} else {

  //for other browser it goes inside this loop and works fine
  protoArray.push.call( this._queue, {
    index : index,
    rewind : rewind
  });
  if ( !this._queue.stalled ) {
    this._show();
  }
}

1 个答案:

答案 0 :(得分:0)

这样做:

&#13;
&#13;
Galleria.configure({
    lightbox: true,
    swipe:false
  });  
&#13;
&#13;
&#13;