Fix bug that would cause tabbuttons to be positioned incorrectly when scrolling with the mouse wheel