3 ms·
The page itself isn't actually scrolling. There are Javascript event handlers that are capturing the swipe events and adjusting the positioning of the main cont
by rufo 17y ago
The page itself isn't actually scrolling. There are Javascript event handlers that are capturing the swipe events and adjusting the positioning of the main content block via WebKit CSS transformations and/or standard CSS positioning. Since it's never actually scrolling the page, the toolbars don't change position.
There are a few JS demos that show this off floating around for iPhone, though they tend to have a variety of potential problems. (Intercepting every touch event via Javascript and handling it yourself results in a lot of edge cases you need to handle; see what happens in the User Guide if you drag your finger off the edge of the screen...)
- seldo 17y agoOf, of course. He even mentions this in the article. The "sticking" problem when you drag your finger off the bottom of the screen doesn't happen when you add the app to your home screen and launch it that way (because there's no safari menu at the bottom of the screen, presumably).