Support CSS scroll-snap-type for cdk/virtual-scroll
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### What is the expected behavior?
Setting CSS `scroll-snap-type: both mandatory;` should enable scroll snapping.
#### What is the current behavior?
No scroll snapping ever happens.
#### What are the steps to reproduce?
https://stackblitz.com/angular/dnnjdjbpaaag?file=app%2Fcdk-virtual-scroll-horizontal-example.css
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/cdk": "7.3.7",
"@angular/core": "7.2.15",
"typescript": "~3.1.1"
Browsers: all
#### Is there anything else we should know?
Closely related to #14833 but it could be fixed other way too.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’implémentation de cdk/virtual-scroll et la reproduction StackBlitz associée, puis comparez le comportement attendu avec l’issue associée #14833. Confirmez comment scroll-snap-type est pris en charge dans l’ensemble de la configuration virtual-scroll concernée ; le travail est terminé lorsque la reproduction prend en charge le défilement CSS avec accrochage obligatoire sur les deux axes dans les environnements de navigateur indiqués.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100