O'Reilly logo

Mastering PhoneGap Mobile Application Development by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required