Debounce scrolls and set position on component mount