Issue 280 | Keep the focus on the previous panel scrolling#385
Open
TechnicalDoctor wants to merge 1 commit into
Open
Issue 280 | Keep the focus on the previous panel scrolling#385TechnicalDoctor wants to merge 1 commit into
TechnicalDoctor wants to merge 1 commit into
Conversation
TechnicalDoctor
commented
Jun 24, 2026
- Added Scroll Storing (tabs.js): Before navigating away from a tab (beforeunload event), the scroll container's (.scrollingWrapper) scrollTop is saved to sessionStorage with a key specific to that tab (e.g. scroll-risks).
- Added Scroll Restoration (tabs.js): Upon page load (DOMContentLoaded event), the saved scroll position for the current tab is retrieved. Since the application renders tab components (such as Tabulator tables) asynchronously, a short-lived, lightweight interval polling mechanism is used to progressively apply the target scroll position as the container is populated. The interval clears immediately when the target scroll position is successfully applied or after 1.5 seconds as a fallback.
- Verified Back-end: Ran the existing backend test suite in lib/ and confirmed all 311 tests pass successfully with zero regressions.
1. Added Scroll Storing (tabs.js): Before navigating away from a tab (beforeunload event), the scroll container's (.scrollingWrapper) scrollTop is
saved to sessionStorage with a key specific to that tab (e.g. scroll-risks).
2. Added Scroll Restoration (tabs.js): Upon page load (DOMContentLoaded event), the saved scroll position for the current tab is retrieved. Since
the application renders tab components (such as Tabulator tables) asynchronously, a short-lived, lightweight interval polling mechanism is used
to progressively apply the target scroll position as the container is populated. The interval clears immediately when the target scroll position
is successfully applied or after 1.5 seconds as a fallback.
3. Verified Back-end: Ran the existing backend test suite in lib/ and confirmed all 311 tests pass successfully with zero regressions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.