makseo / ng2-sticky

Angular 2+ solution to make elements stick during scrolling.
https://domainlines.com
MIT License
92 stars 50 forks source link

scroll event not firing #26

Closed wiedikerli closed 7 years ago

wiedikerli commented 7 years ago

When i have a div with overflow: scroll the event scroll is not firing when i scroll in the div. Maybe we need to pass a parent into the component. so you could bind it to the container element.

Or you bind it to the document:

document.addEventListener('scroll', function() {
    console.log("scroll fired");
}, true); // <= important to capture the event

Or am I missing somethang?

Image of Yaktocat