URLhashListener picking the wrong item (Owl Carousel)

1

I'm using Owl Carousel on a landing page. I added some thumbnails, and I used the URLhashListener to associate the thumbnails with the respective image, but the link is opening the wrong image. It looks like the script is calculating the wrong value, the images are 2 delayed.

is under homologation here: link

    
asked by anonymous 07.10.2015 / 21:58

1 answer

1

I discovered the problem. It's a bug from Owl Carousel itself.

You can loop back.

loop: true .

You can take those other options:

URLhashListener:true,
startPosition: 'URLHash'

These two from above is just to change the URL, the Hash:

#one #two .

Now what you have to do is import this script file below into your code, under owl.carousel.min.js or owl.carousel.js .

link

Here's the LINK, but you can save the page as a JS file for you to have the file, so if LINK breaks you go.

    
07.10.2015 / 22:53