Skip to content

Commit

Permalink
fix: scroll listener vueComponent#315
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoroli committed Jul 4, 2019
1 parent 161934d commit d1444a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GlobalHeader/GlobalHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
}
},
mounted () {
document.body.addEventListener('scroll', this.handleScroll, { passive: true })
document.addEventListener('scroll', this.handleScroll, { passive: true })
},
methods: {
handleScroll () {
Expand Down

0 comments on commit d1444a6

Please sign in to comment.