Prevent window from scrolling when focusing pages