Description
Bug, feature request, or proposal:
Feature request
What is the expected behavior?
Allow the scroll of the cdk-virtual-scroll-viewport to be controlled by the top level window scrollbar.
See example at the link below. (Go to that page and click on parent scroll to see desired behavior)
https://rintoj.github.io/ngx-virtual-scroller
Another example of window scrolling in the context of virtual scrolling
https://bvaughn.github.io/react-virtualized/#/components/WindowScroller
What is the current behavior?
Specifying a parent scroll does not seem to be supported, from what I can tell.
What is the use-case or motivation for changing an existing behavior?
Having a single top level window/page scroll is standard in a lot of SPAs. The virtual-scroll would be a lot more useful in these cases, if it could use the same scroll bar, otherwise often times you end up with two scrollbars (one for the virt-scroll and the other for the page, or else a smaller inset container for the virt-scroll with a scrollbar), which is less than ideal.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 7.0.1
Material: 7.0.2