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

后端 未结 4 1045
清歌不尽
清歌不尽 2021-02-15 19:19

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 19:59

    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

提交回复
热议问题