change from element's scroll to document's scroll