Closed ColinMorris83 closed 4 years ago
Hi @ColinMorris83, yes, scrolling inside other containers than the main html body is possible with "nested scrolling" feature. The following code from the demo app showcases how to use the service for scrolling:
You can define the container using the scrollViews
property.
Yep great, just found that exact piece of code looking around the source code. Thanks a lot, library seems great.
Looking at moving away from https://www.npmjs.com/package/@nicky-lenaers/ngx-scroll-to to use your library, but can't see any options for scrolling within a container, seems like can only scroll on the top level Document. Is it possible in your library to specify an HtmlElement as the scrollable container? The use case is things like a side drawer that open and then need to scroll within that drawer.
I see on the demo page there is nested scrolling example, so looks like it is possible, is there some example code of using the scroll service to do this?