Change scroll listener to on-scroll.