[FIX] web: scroll should move top on clicking menu on top bar

Cherrypicked from 0a1fa70aab548e290171e71b5e56226255af35d7
Closes #2259