renamed function scrolling to allow_scrollingc