Skip to content

Commit

Permalink
fix: set scrolled attribute only when offset is larger than the header
Browse files Browse the repository at this point in the history
  • Loading branch information
felixw committed Sep 20, 2023
1 parent 9ea4c6a commit 90bada6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class TelekomHeader {

@Listen('scroll', { target: 'document' })
onScroll() {
this.scrolled = window.pageYOffset > 2;
this.scrolled = window.pageYOffset > 48;
this.scrolledBack =
this.pageYOffset !== window.pageYOffset && window.pageYOffset <= 0;
this.pageYOffset = pageYOffset;
Expand Down

0 comments on commit 90bada6

Please sign in to comment.