First of all, I created a jsfiddle for this issue:
http://jsfiddle.net/JxNPe/1/
This issue only occurs in Chrome/Safari, in Firefox it does not:
There is a contenteditable div which shall be scrolled inside an outer div. When entering more lines into the contenteditable, it becomes "scrollable" as its height becomes bigger than the height of the outer div. Everytime a keyup is received I call refresh() on the iScroll instance to make sure that any possible height changes trigger a refresh().
The issue now is that it looks like refresh() does not work. When trying to scroll up, the scroll position snaps back to the old position.
This issue is not related to the contenteditable. Same occurs if I use a textarea. In Firefox it is a different issue because there the contenteditable div does not scroll automatically when entering new lines.
Do you have any idea why this happens or how it can be fixed?