Skip to content

[OGUI-1924] Fix incorrectly called disableAutoScroll - #3636

Draft
isaachilly wants to merge 11 commits into
devfrom
bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll
Draft

isaachilly wants to merge 11 commits into
devfrom
bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll

Conversation

@isaachilly

@isaachilly isaachilly commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Ticket:

When clicking live mode after having ran a query that returns logs that don't fit in the visible window, the onTableScroll event listener fires and just after live mode has enabled autoScroll, it thinks the user has scrolled up, and disables it.

Code:

Add another check that if we thinkt he user has scrolled up (by inbfering this from scrollTop change) then also check if the user is still at the bottom of the page. If they are, then do not consider this as the user scrolling up.

Reviewer:

  • Test with and without the check.

The table scroll handler treated any decrease in scrollTop as the user scrolling up however this caught also just when the content shrunk which happens on switch from a full query mode to an initially empty live mode.

Check now also if at the bottom of the page and if we still are then don't disableAutoScroll.
@isaachilly isaachilly self-assigned this Sep 24, 2026
@isaachilly isaachilly changed the title Bug/ilg/og UI 1924/fix incorrectly called disable auto scroll [OGUI-1924] Fix incorrectly called disableAutoScroll Sep 24, 2026
Introduces a suite to cover autoscroll behaviour when users scroll, switch modes, and clear logs in both query and live mode.
Refactor the logs table mocha tests to wait for `autoScrollLive` state transitions with a shared helper instead of reading the value immediately.
Comment thread InfoLogger/test/public/logs-table-mocha.js Fixed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants