Enable click events in iScroll on mobile browser

smstromb picture smstromb · Jul 21, 2013 · Viewed 18k times · Source

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.

Answer

fabio_biondi picture fabio_biondi · Jul 21, 2013

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