When I first studied the iphone webkit I was surprised to see that I could not place fixed position elements and could not scroll contents inside divs or iframes (with 1 finger gesture). I found a couple of overcomplicated solutions to this problem on the web so I tried to code everything from scratch and the result is a not perfect but functional 4kb script (unminified).
Here a working demo http://cubiq.org/dropbox/iphonescroll.html (iphone, ipod touch and emulator). If you don't have an iphone at hand, watch the screencast http://cubiq.org/media/movies/scrolling-div-iphone.mov . You'll find some instructions at http://cubiq.org/scrolling-div-on-iphone-ipod-touch/5 and the script itself here http://cubiq.org/dropbox/iscroll.js Hope it could be of some use. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
