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
We now have the workaround for the unwanted scrolling down to the tab (pr #11), however I think we've created a different problem as a result.
The scroll to top is happening even when you already are on the page and just switching tabs. I don't think it should scroll at all when you already have the page open (easier said than done I know).
To see what I mean:
up the back-to-top test page
make your browser small enough that the filler text at the top pushes the tabs off the bottom of the window
scroll down to the tabs
click another tab
notice that the page is scrolled to the top and you can no longer see what you clicked on
this is in firefox.
The text was updated successfully, but these errors were encountered:
Having the scroll to top always happen can be useful in instances where there is a desire to switch tabs while at the same time keeping a sites primary navigation at the top of a page in view. It wouldn't be too difficult to expand the backToTop option though, we could address the issue you described by passing the desired behavior like:
Hiya,
We now have the workaround for the unwanted scrolling down to the tab (pr #11), however I think we've created a different problem as a result.
The scroll to top is happening even when you already are on the page and just switching tabs. I don't think it should scroll at all when you already have the page open (easier said than done I know).
To see what I mean:
this is in firefox.
The text was updated successfully, but these errors were encountered: