Keep scroll position during Validate repaint #802
cernyjakub
started this conversation in
General
Replies: 2 comments 1 reply
|
Unpoly does not scroll during cache revalidation. However, when the revalidated fragment is a scrolling viewport (e.g. This probably needs to be addressed within the framework. As a workaround, maybe your history navigations can render a smaller fragments, that isn't a scrolling viewport: up.history.config.restoreTargets=['main']If you absolutely need to render the body during history navigations, you might be able to hack it like this (internal API, will eventually break): up.RenderOptions.NO_INPUT_INTERFERENCE.scroll = 'keep' |
0 replies
|
This issue has been addressed in Unpoly 3.14.3. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When I return to previously visited page, I get cached version. Then I scroll down and when fresh version arrives, I am scrolled to the top of page.
Do you have some idea how to keep scroll position when repainting content after cache validation? I understand this is not a Navigation and I did not find any info in the docs for this case.
Thanks for a great tool!
jakub
All reactions