update scrollTop & scrollLeft to be called from window-dimensions