Block scrolling if there are no buttons.