dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.18k stars 3.31k forks source link

Navigation problem in OWL Carousel #1003

Open ioanrobciuc opened 8 years ago

ioanrobciuc commented 8 years ago

I added PhotoSwipe in OWL Carousel but I have a problem with navigation (not displayed).

This is the mark-up:

<div id="owl-carousel">
    <div class="owl-wrapper-outer">
        <div class="owl-wrapper">
            <div class="owl-item">
                <figure>PhotoSwipe</figure>
            </div><!--/.owl-item-->
            <div class="owl-item">
                 <figure>PhotoSwipe</figure>
            </div><!--/.owl-item-->
             <div class="owl-item">
                 <figure>PhotoSwipe</figure>
            </div><!--/.owl-item-->
        </div><!--/.owl-wrapper-->
    </div><!--/.owl-wrapper-outer-->
</div><!--/#owl-carousel-->

How to I do to display the navigation for this mark-up? Thank you!

mjau-mjau commented 8 years ago

What exactly is the "problem with navigation"? I have used photoswipe with owl-carousel myself ... There is an issue, because the carousel clones items for the carousel layout. Therefore, when creating the slides object, you need to exclude carousel items with .cloned class. You also need to exclude .cloned items when creating the index of the current image.

edi commented 8 years ago

@mjau-mjau Could you show me an example of how you're using them both ? I'm trying to write a decorator plugin for RactiveJS with these two, managed in writing it for the owlcarousel but I just can't figure PhotoSwipe out.

Federico39 commented 8 years ago

Sorry, can not help, am NEW to Git. With OWL had also problems, just dropped it.

Life is to short to experiment. Federico

2016-01-20 22:23 GMT+01:00 Edi Duluman notifications@github.com:

@mjau-mjau https://github.com/mjau-mjau Could you show me an example of how you're using them both ? I'm trying to write a decorator plugin for RactiveJS with these two, managed in writing it for the owlcarousel but I just can't figure PhotoSwipe out.

— Reply to this email directly or view it on GitHub https://github.com/dimsemenov/PhotoSwipe/issues/1003#issuecomment-173363178 .