cubiq/iscroll — Issue #159: Android: Error on Orientation change for iScroll-lite
Author: piston47
Created: 2011-12-19 22:39:02+00:00
State: open

This is related to Issue #72 (https://github.com/cubiq/iscroll/issues/72).

The same issue still exists in the latest iScroll-lite.js file, after orientation change you cannot scroll the entire screen.

By implementing the same logic used in the iscroll.js file on the method _refresh() fixes the issue.

Prescribed fix:

// Prototype
iScroll.prototype = {

...

_resize: function () {
var that = this;
setTimeout(function () { that.refresh(); }, isAndroid ? 200 : 0);
},

...

}