News for hackers. Stuff that matters.
Re:We can make most web apps work on the iPad. Even Google D... by spion on Thursday December 13, 2012 @10:48AM (#4916177)
Yes and no. There is some not-so-pretty trickery involved on both the native side and the JS side. We have an invisible layer on top of the browser on the native side, and call the JS code which generates the appropriate events and scrolls the appropriate elements.
Re:We can make most web apps work on the iPad. Even Google D... by mikegioia on Thursday December 13, 2012 @11:56AM (#4916583)
So, a new layer above javascript and below the browser?
Re:We can make most web apps work on the iPad. Even Google D... by spion on Thursday December 13, 2012 @12:10PM (#4916693)
Yup, events never actually reach the browser. They are received by the invisible layer and then sent to some JS code (which is injected into the page).

Thats why you need to double-tap to edit text fields or upload a photo - we can't make text boxes enter editing mode or initiate image upload via JS (the second is disabled because of security issues) so we need to temporarily disable the layer when you attempt that.