Making sure not to scroll the sidebar sideways.