Move scrolling behavior into separate namespace for future improvements