Fixed to consistent code style on scrolling functions