It turned out that Android doesn’t fire the
orientationchange event. Fortunately we can rely on the
resize event which works on both iPhone and Android and it is fired once the device is rotated. As a bonus resize seems more reliable, so I’m using it for both platforms.
iScroll 3.3 beta 2 adds also an improved scrollbars management. The scrollbars do not need to be styled anymore, if no default class is given, iScroll cares about giving a pretty face to them. If you prefere to use a custom style you can pass the
scrollbarClass parameter. The scrollbars will be assigned the given string as class name.
To help people get started with the script I baked an archive where you’ll find a couple of demos you may find useful alongside with a minified version of iScroll. You find it in the
dist directory, remember to use
iscroll-min.js on your production site.
As always, I need beta testers. Don’t be shy and give your feedback. Now head to the iScroll project page.