Support CSS scroll-snap-type for cdk/virtual-scroll
See original GitHub issueWhat 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:10 (2 by maintainers)
Top Results From Across the Web
using cdk-virtual-scroll with scroll-snap-type - Stack Overflow
It is working fine without using the css property scroll-snap-type . When I use scroll-snap-type it is flickering few seconds. herewith I ...
Read more >scroll-snap-type - CSS: Cascading Style Sheets | MDN
The scroll container snaps to snap positions in both of its axes independently (potentially snapping to different elements in each axis).
Read more >Scroll snapping with plain CSS properties - Adam Bien
Enforcing "snapping" with the CSS property: scroll-snap-type on the scroll ... live, virtual workshops: NEW AWS Java Bootstrap, June 15th, ...
Read more >Grid Virtual Scroll, Sorting, Filtering Demo.
Smart Grid Web Component Virtual Scroll, Sorting and Filtering Demo. ... NgFor · Angular Service with Toast · Angular Component in Grid Column ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any workaround for supporting this?
Any updates on the issue? This would be really interesting feature.