Reduce amount of scroll listeners in the header #4801
Labels
📦 components
Related to the @swisspost/design-system-components package
Header
Everything related to our composible header components
Binding both listeners, ensures, we can always call this.handleScrollEvent, no matter which element is the scroll parent. And the other listener will just not being called.
Originally posted by @oliverschuerch in #4786 (comment)
The headers is currently adding listeners to both its scroll parent and the window, check if we can set one or the other instead of both
The text was updated successfully, but these errors were encountered: