Skip to content

fix(grid): Proccess trailing vertical scroll updates after throttling - #17486

Draft
mddragnev wants to merge 4 commits into
masterfrom
mdragnev/fix-vertical-scroll-throttle
Draft

fix(grid): Proccess trailing vertical scroll updates after throttling#17486
mddragnev wants to merge 4 commits into
masterfrom
mdragnev/fix-vertical-scroll-throttle

Conversation

@mddragnev

Copy link
Copy Markdown
Member

Closes #17484 #17432

Description

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI review requested due to automatic review settings August 5, 2026 15:15
@mddragnev mddragnev changed the title fix(grid): Get the trailing scroll event when vertical scrolling fix(grid): Proccess trailing vertical scroll updates after throttling Aug 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses reported grid vertical scrolling inconsistencies by adjusting the vertical scroll notification throttling so that the final (“trailing”) scroll update is processed, and updates a hierarchical grid navigation spec to account for the now-throttled scroll behavior.

Changes:

  • Update scrollNotify throttling configuration to process trailing scroll events.
  • Adjust hierarchical grid navigation test timing to wait for the throttled vertical scroll to complete before asserting.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.navigation.spec.ts Adds an animation-frame wait in the ctrl+end navigation test to account for throttled vertical scrolling.
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts Changes vertical scroll throttling behavior to process trailing scroll updates (and includes minor formatting-only edits).

switchMap(time => timer(time, this.throttleScheduler))
)
),
{ leading: false, trailing: true }
Copilot AI review requested due to automatic review settings August 5, 2026 15:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (2)

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts:3702

  • This change modifies the vertical scroll throttling behavior (enabling trailing emissions). Please add a unit test that simulates rapid scroll events and asserts that the final scroll event is processed (i.e., the last position is applied after the throttle window). Current tests call verticalScrollHandler directly and don’t exercise the throttled scrollNotify pipeline.
                { leading: true, trailing: true }

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts:113

  • The import list has an extra trailing comma before the closing brace, which is inconsistent with the other imports in this file and may fail linting/format rules.
import { getCurrentI18n, getNumberFormatter, IResourceChangeEventArgs, } from 'igniteui-i18n-core';

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.

IgxGrid with a lot of columns and rows does not have consitant scrolling

2 participants