简体   繁体   中英

How to detect start scrolling with cdk-virtual-scroll-viewport?

I'm looking for an event or any method to detect when the user starts scrolling through the list.

I know the elementScrolled Method, but the Observable emits way too often.

Do you maybe have any workaround for this issue?

I would be very happy about any suggestions :)

Have you tried to use 'auditTimeInMs'

https://material.angular.io/cdk/scrolling/api#ScrollDispatcher

auditTimeInMs? number
Time to throttle the scroll events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM