Skip to content

v1.0.4: Bugfix for mobile applications

Compare
Choose a tag to compare
@janpaepke janpaepke released this 08 Mar 12:16
· 497 commits to master since this release
When using iScroll the calculation of the scroll position was actually
wrong, because instead of really scrolling the container, iScroll moves
the content element.
To fix this a new method was added to the controller, that allows for
custom functions for the scroll position calculation.
When adding iScroll users should now define a function to calculate the
correct scroll position.
Example:
controller.scrollPos(function () {
	return -myScroll.y;
});

I also updated the main demo page to be mobile compatible.