Don't use outdated resolution for scrollOffset calculations