allow page scrolling when scroll reaches top/bottom or there is nothing to scroll