Sunday, October 15, 2017

Removing click delays in iOS - apache cordova apps


 I started to use Angular JS in cordova for iOS. Every thing was perfect except I experienced a delay in response to ng-click function. In windows and android I did not see that delay.

Finally after we searches I found the solutions  You just need to include the fast click library from bellow url.


 https://github.com/ftlabs/fastclick 

Now if you using winstore-js-compact.js to fixed problems with angular in windows environment you cant refer fast-click library as a direct javascript reference. Instead of that add your script as follows.

       if (cordova.platformId == "ios") {
            /*  Add fast-click.j's content  to here */
       }

No comments:

Post a Comment