Correcting input lag
As should be obvious, we can't eliminate all of the input lag. There's always going to be some present. What we can eliminate are those frustrating times when it doesn't immediately appear as if the device has understood our intent.
Because mobile devices rely on touch and generally have pretty small screens, gestures are the primary input mechanism. Also, because we like to do a lot of things with the data on the screen, apps tend to recognize several gestures. Tapping is the obvious gesture, but while browsing a web page, the double-tap-to-zoom gesture is also often used. Because our hybrid app lives within a web view, it inherits the same double-tap-to-zoom gesture, which is often problematic. How many apps have you seen that let you zoom in on their user interface elements? Not many, if any at all.
This double-tap-to-zoom gesture comes with a problem: at first, it appears no different than a single tap on the screen. This means that the web view has to wait some additional...