Move scroll on resize window bugfix