javascriptmobileiscrolliscroll4

Enable click events in iScroll on mobile browser


I'm using iScroll to create a web app and I'm unable to click any divs that are within the iscroll wrapper. I tried setting eventPassthrough option to be true but it causes a significant amount of scrolling problems.

Anyone experienced this?

Edit: I'm using iScroll 5. The click events work chrome,firefox, and safari but not ios mobile safari.


Solution

  • Try setting the option "click: true"

    example:

    myScroll = new IScroll('#wrapper', { click: true });
    

    I had the same problem on IOS6 and it fixed the issue