Fixed issue when Chrome/Safari were scrolling past document boundaries (scrollTop < 0 or scrollTop > document_height - window_height)