Vuejs Detect if user has scrolled to bottom Detect if the user has scrolled to bottom of a container element and executed a function. <template> <div @scroll="onScroll"></div> </template> <script> export default function () { methods: { onScroll ({ target: { scrollTop, clientHeight, scrollHeight }}) { if (scrollTop + clientHeight >= scrollHeight) { this.loadMorePosts() } } } } </script> BBMCode