makseo / ng2-sticky

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

Checking media query before activating stick #56

Closed drewdaemon closed 5 years ago

drewdaemon commented 5 years ago

This is a great package. I ran into a problem with the sticky-ness getting activated if a page was loaded in such a way that the media query was true (so the component shouldn't stick). Adding this check fixed the problem. LMK if there are questions.