Here are some issues I'm experiencing with vuejs and router:
- The window.addEventListener('scroll', ...) is not being detected in my component.
- When I enter 'window.scrollY' in console.log, it always returns 0 to me.
- Scroll(Y) is working properly and window.innerHeight is not equal to 0.
- I am unable to detect when the client scrolls to the bottom of the page.
- I am using vuestic and vue-router.
created () {
// Not working because window.scrollY always returns 0
window.addEventListener('scroll', this.handleScroll);
},
methods: {
handleScroll (event) {}
}