Tiny fix
The bug was about scrolling tabs: actions sometimes got doubled due to "if" used instead of "else if"