iScroll won't let items be clicked

前端 未结 9 2276
长情又很酷
长情又很酷 2021-02-07 05:41

I am using iScroll4 and it\'s working great!

This are the functions I use to init, refresh and end iScroll:

function iniciarIscroll(){
    /*En ie7 no lo         


        
9条回答
  •  余生分开走
    2021-02-07 06:08

      // Setup myScroll
      myScroll = new IScroll('#wrapper', {
        scrollX: horizontalSwipe,
        scrollY: !horizontalSwipe,
        momentum: false,
        snap: document.querySelectorAll('#scroller .slide'),
        snapSpeed: 400,
        bounceEasing: 'back',
        keyBindings: true,
        click: true
      });
    

    For me, I just need to add click: true on the last line... Spent the whole day debugging and implementing all the suggested solutions to no avail...

提交回复
热议问题