DominikSerafin / vuebar

(🗃️ Archived) Vue 2 directive for custom scrollbar that uses native scroll behavior. Lightweight, performant, customizable and without dependencies. Used successfully in production on https://ggather.com
https://github.serafin.io/vuebar/
MIT License
649 stars 77 forks source link

How to call a callback function after scroll event #54

Closed vee2046 closed 6 years ago

vee2046 commented 6 years ago

after it trigger scroll event I hope set a callback function

DominikSerafin commented 6 years ago

Hey @vee2046 , Vuebar doesn't interfere with native scroll events. It's actually a major feature of Vuebar. So you can just hook into @scroll event (on second element) as you would normally do with plain Vue.