Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on a different tab and then back on the first one - loses the context of the tab #67

Open
mojothejojo opened this issue Nov 27, 2022 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mojothejojo
Copy link

Screenshot 2022-11-27 at 11 26 54 AM

As in the Screenshot - following are the steps:

  1. Initially we are on the Tab:1
  2. Click on Tab:2
  3. Then Click back on the Tab:1
  4. The context of the Tab:1 is lost - and one needs to drag the page all the way down to "reload" the page - upto the point where one was working on.
@pengx17
Copy link
Owner

pengx17 commented Nov 28, 2022

The context of the Tab:1 is lost

The position of tab:1 should persisted and when it is revisited it needs to scroll to the previous position. I guess the issue is that the length of tab:1 is very long and due to page lazy load optimization the scroll position may not be correct. Is the length of tab:1 very long? Will it work if you scroll it a bit, switch to tab:2 and switch back?

@mojothejojo
Copy link
Author

Is the length of tab:1 very long?

  • Yes - the length of document is long

Will it work if you scroll it a bit, switch to tab:2 and switch back?

  • nope - it is not restoring back to the position where I left it - and I need to explicitly remember the position where I was on a given tab.

@mojothejojo
Copy link
Author

Is there any explicit config override / script that I can add on my install - so that this gets to work in the way I want?

@pengx17 pengx17 added bug Something isn't working help wanted Extra attention is needed labels Dec 3, 2022
@pengx17
Copy link
Owner

pengx17 commented Dec 3, 2022

Is there any explicit config override / script that I can add on my install - so that this gets to work in the way I want?

Not right now. You can fork the repo and fix the issue. I suppose the fix should be try to scroll multiple times until there are no lazy rendered elements.

@gabrc52
Copy link

gabrc52 commented Jun 15, 2024

In logseq/logseq#9721, someone mentions the "Save scrollbar position" plugin can be a workaround.

@thowi
Copy link

thowi commented Oct 6, 2024

+1 would be great to fix and very annoying for larger pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants