I get it. Chrom has a rendering error.
If you call the window scroll function, immediately after updating some DOM properties, Chrom will not fully display all your DOM changes.
To fix the problem, I will replace this line:
window.scroll(0,docPos);
Using this line:
setTimeout('window.scroll(0,' + docPos + ')',1);
This gives Chrom the ability to visualize dom changes before a window scrolling error can stop it.
source
share