iPad Flicker on auto scroll using JQuery and Scrollto plugin

前端 未结 11 1622
情话喂你
情话喂你 2020-12-12 16:52

I am having a bit of a weird problem with iOS platform for a page i am developing. This is the page in question. When clicking any of the case study images, the page will

11条回答
  •  温柔的废话
    2020-12-12 16:59

    You need to add e.preventDefault(); to each .click() call. This prevents the browser's default action, which is to stay in the same place. Hope this helps!
    i.e.

    $("#quicksand li, .client-list li").click(function (e) {
      e.preventDefault();
      ...
    });
    

提交回复
热议问题