Factor out listing scroll code to its own class.
polyfill document.hidden