Don't use outdated resolution for scrollOffset calculations
Merge pull request #37 from rojkov/scroll-fix

Don't use outdated resolution for scrollOffset calculations