Skip to content

Flickering during scroll restoration with scrollPositionRestoration: 'enabled' in Angular #53985

@surajchopra16

Description

@surajchopra16

Which @angular/* package(s) are the source of the bug?

common & router

Is this a regression?

No

Description

Flickering occurs on every scroll interaction done automatic on the load of the page, when scrollPositionRestoration: 'enabled' is used in Angular.
This error is happen in a complex and large app with lot of routes.

This work fine in small app and in new project and can there are any factor which are affecting this scrolling Behavior

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.0.0
Node: 20.9.0
Package Manager: npm 10.2.3
OS: win32 x64

Angular: 17.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0
@angular-devkit/build-angular   17.0.0
@angular-devkit/core            17.0.0
@angular-devkit/schematics      17.0.0
@angular/cdk                    17.0.0
@angular/cli                    17.0.0
@angular/material               17.0.0
@angular/ssr                    17.0.0
@schematics/angular             17.0.0
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.2

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions