» AdLib
Jim Hoskins dissects AdLib, the Javascript library Apple uses in its iPad-optimized version of the iPhone reference library (you need to be using an iPad or the iPad emulator to see the correct version). This is presumably the iPad equivalent of PastryKit, Apple’s UI Javascript library for iPhone.
After extracting the JavaScript and de-minifying it, my suspicions were confirmed. Apple was manually reading the touch events, calculating the inertia of the scrolling, and manually drawing the scroll bars. It was incredible that it worked so smoothly in the browser.
