Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Instances #14

Open
594727294 opened this issue Feb 18, 2015 · 1 comment
Open

Multiple Instances #14

594727294 opened this issue Feb 18, 2015 · 1 comment
Labels

Comments

@594727294
Copy link

Hi! thank you for developing this jQuery plugin i have a small question:

Im trying to get to work two galleries to run using this initialization script :

$(function() {
  $('a.genova').fullsizable({
    detach_id: 'container'
  });

  $('a.breakfast').fullsizable({
    detach_id: 'container'
  });

  $(document).on('fullsizable:opened', function(){
    $("#jquery-fullsizable").swipe({
      swipeLeft: function(){
        $(document).trigger('fullsizable:next')
      },
      swipeRight: function(){
        $(document).trigger('fullsizable:prev')
      },
      swipeUp: function(){
        $(document).trigger('fullsizable:close')
      }
    });
  });
});

The second one works allright but and the first one opens properly but when i move to the next one it shows me the second image from the second gallery.

Any way to make them work together?

@MSchmidt
Copy link
Owner

Unfortunately it's a known limitation that this plugins doesn't work well when having multiple galleries on one page. This is high up on my list to get addressed. Sorry for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants