question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support CSS scroll-snap-type for cdk/virtual-scroll

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pranavkumar389commented, Sep 26, 2021

Any workaround for supporting this?

1reaction
mark922commented, Jun 10, 2021

Any updates on the issue? This would be really interesting feature.

Read more comments on GitHub >

github_iconTop 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 >
Virtual Scroll Snap - StackBlitz
Horizontal virtual scroll.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found