Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Scrolling stalls when scrolling via keyboard with large set of complex data #14765

Open
s73obrien opened this issue Jan 9, 2019 · 5 comments
Labels
area: cdk/scrolling P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@s73obrien
Copy link

Bug, feature request, or proposal: Bug

What is the expected behavior?

When scrolling down the list by holding down the up or down arrow key, the list should scroll smoothly all the way down to the end

What is the current behavior?

When scrolling down the list by holding down the up or down arrow key, at random times and seemingly random circumstances, the scrolling behavior stalls. I believe the focus is being lost on the list for whatever reason as, if you click on the list and press the arrow key, scrolling resumes as normal.

What are the steps to reproduce?

StackBlitz here. Click on the list and press and hold the down arrow key. It may take a couple attempts, but eventually it should stall.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Reproduced in Chrome 71.0.3578.98 and IE 11. Could not reproduce in Firefox 64.0.

Package Version
@angular/animations 7.2.0
@angular/cdk 7.2.1
@angular/common 7.2.0
@angular/compiler 7.2.0
@angular/core 7.2.0
@angular/forms 7.2.0
@angular/http 7.2.0
@angular/material 7.2.1
@angular/platform-browser 7.2.0
@angular/platform-browser-dynamic 7.2.0
@angular/router 7.2.0
core-js 2.6.1
rxjs 6.3.3
rxjs-compat 6.3.3
zone.js 0.8.26

Is there anything else we should know?

Resource-bound maybe?

@andrewseguin andrewseguin added the P4 A relatively minor issue that is not relevant to core functions label Jan 9, 2019
@mmalerba mmalerba added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed P4 A relatively minor issue that is not relevant to core functions labels Jan 9, 2019
@mmalerba
Copy link
Contributor

mmalerba commented Jan 9, 2019

I am able to reproduce this. It seems like maybe the element that was clicked on originally is destroyed and then the scrolling stalls. Clicking inside the viewport again will make it work again

@KimAlexander
Copy link

KimAlexander commented Jul 13, 2019

Any ideas or workaround ?

@afluegge
Copy link

Having the same problem. Any progress on this?

Reproduced in Chrome 80.0.3987.122 (Official Build) (64-bit)

Package Version
@angular/animations 7.2.16
@angular/cdk 7.3.7
@angular/common 7.2.16
@angular/compiler 7.2.16
@angular/core 7.2.16
@angular/forms 7.2.16
@angular/material 7.3.7
@angular/platform-browser 7.2.16
@angular/platform-browser-dynamic 7.2.16
@angular/router 7.2.16
core-js 2.6.5
rxjs 6.5.3
rxjs-compat 6.4.0
zone.js 0.8.29

@s73obrien
Copy link
Author

I ended up rewriting a part of the virtual scrolling lib into what I was working on at the time. I don't remember which changes I made exactly, but they are in this directory -> s73obrien/ngx-hex-input/projects/ngx-hex-input/src/lib/scrolling

@renkei
Copy link

renkei commented Mar 9, 2021

Workround for me: Don't click into the viewport, e.g. a table. Instead, click on the scrollbar. As long as the scrollbar has focus you can use down/page down and up/page up without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/scrolling P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

6 participants