owl carousel 2 not work with loop and 1 items (Bug Fixed Now)

后端 未结 4 2052
执念已碎
执念已碎 2021-02-15 19:40

I work with owl carousel 2 for carousel content.

JS:

$(\'#owl-demo\').owlCarousel({
    loop: true,
    margin: 10,
    nav: true,
    items: 1,
});
         


        
4条回答
  •  忘了有多久
    2021-02-15 20:11

    I report this bug to Owl developer group and fix this problem here.

    Change this line in Commit

    view = Math.max(settings.items * 2, 2),
    

    Now this worked in demo

提交回复
热议问题