Get scroll pos in a more portable way.