Fix the animation bug where the tab gets moved two positions rather than one. This closes #1.