One of the more annoying issues when developing applications that run in the iOS browsers (and other mobile browsers) is the lag that occurs between a touch, and the actual firing of a click event. This is actual on purpose – as the browser is waiting to see if a double-click is occurring.
FT labs has created a javascript library called FastClick that allows you to get rid of this issue very easily.
As the read me states:
FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a click event on mobile browsers. The aim is to make your application feel less laggy and more responsive while avoiding any interference with your current logic.
You can find FastClick on Github here.
An extremely handy library if you find yourself dealing with the common “browser touch lag” issue. Thanks to Chris for the submission.
- Open Source Custom Browser Component For Fast iOS Games Created With HTML5/Javascript
- Open Source: Javascript Library For Easily Handing Multi-Touch Gestures (Taps, Drags, And Transforms)
- Example: JavascriptCore In iOS Apps – High Performance HTML5/Javascript Apps – No UIWebView
- Html CSS Javascript for Iphone Native Development Like Palm Pre WebOS
- Tutorials: Swipe Reading, Orientation Support, And Image Slideshows In iPad Web Apps
Original article: Javascript Library For Eliminating The Touch Lag That Occurs Within iOS Browser Based Apps
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.