Skip to content

initialScrollIndex followed by scroll-up leads to unexpected scroll on Chrome #1783

@zarko-tg

Description

@zarko-tg

Description

I'm observing a wrong scroll / displayed items when scrolling up from the set initialScrollIndex.
When the top shown value is say 5, and scrolling up, I expect to see the 4, 3, 2 etc., not 12, 11, 10...

The chosen container size, number of items, item height and initialScrollIndex in the demo code may seem picked random but the issue occurs given those for some reason. And only on desktop Chrome. No issue with desktop Safari.

Steps to Reproduce the Issue

https://stackblitz.com/edit/stackblitz-starters-ptaye3?file=src%2Fmain.ts

Environment

Chrome: 129.0.6668.59 stable
Angular CLI: 18.x
Node: 20.17.0
OS: macOS 15.0

Angular: 18.x
Ivy Workspace: Yes
@rx-angular/template: 18.2.0

Workaround

Not aware of any straightforward workaround.

Metadata

Metadata

Assignees

Labels

</> Template@rx-angular/template related🐞 BugBug: Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions