Skip to content

Issue 280 | Keep the focus on the previous panel scrolling#385

Open
TechnicalDoctor wants to merge 1 commit into
ThalesGroup:masterfrom
abhi3121:issue280
Open

Issue 280 | Keep the focus on the previous panel scrolling#385
TechnicalDoctor wants to merge 1 commit into
ThalesGroup:masterfrom
abhi3121:issue280

Conversation

@TechnicalDoctor

Copy link
Copy Markdown
  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.

   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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants