pass both window dims to scroll handler, just so callbacks don't need to calculate it themselves