You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Anchor tabs when changing focus (or otherwise compensate for a changing page length) #3728
Weird, if you scroll a little bit, this does not happen anymore and the browser is able to figure out how to keep the scroll position (at least Chrome, Firefox seems to struggle even more)
I don't think this should be closed ... it's nice that if a switch moves the tab totally out of your viewport, it at least readjusts the window to include it
But I think the actual behavior should be that the scroll adjusts such that the tab stays in the same RELATIVE position within your window. Even just having the tab pushed down or up in your window when you make a switch is really annoying and jarring.
Activity
lex111 commentedon Nov 11, 2020
Agree, this is a really unpleasant thing, we will try to fix it.
slorber commentedon Nov 12, 2020
Weird, if you scroll a little bit, this does not happen anymore and the browser is able to figure out how to keep the scroll position (at least Chrome, Firefox seems to struggle even more)
allanaaa commentedon Nov 12, 2020
I forgot to ask: Do you have any quick fixes or workarounds for the time being?
lex111 commentedon Nov 12, 2020
Perhaps disabling tab choices syncing will help in your case?
Radolumbo commentedon Jul 2, 2021
I don't think this should be closed ... it's nice that if a switch moves the tab totally out of your viewport, it at least readjusts the window to include it
But I think the actual behavior should be that the scroll adjusts such that the tab stays in the same RELATIVE position within your window. Even just having the tab pushed down or up in your window when you make a switch is really annoying and jarring.
slorber commentedon Jul 5, 2021
The tab has a different height so it can't technically "stay in the same position".
The most we could do is keep the tab top stay at the same position, but the tab bottom position will still change.
This may be harder to implement and the ROI is not huge, so I suggest adding this to Canny / feature requests
Radolumbo commentedon Jul 7, 2021
Yeah, I meant the top of the tab, since that's what matters in terms of creating that "jarring" effect where suddenly your window position changes.
But, fair enough, I can make this a feature request instead.