user3046970 user3046970 - 3 months ago 11
HTML Question

FastClick and click() event trigger trouble

I have trouble when I include FastClick in my proj. All works fine and 300ms delay on mobile devices is lost but programmatically triggering click() event doesnt work on mobile now.

Answer

It says this in the documentation (well, the page you linked under advanced)

This is where the needsclick class comes in. Add the class to any element that requires a non-synthetic click.

So add the class needsclick to the elements you want to manual trigger "click" with

Comments