instead of calculating here, you can use this.isScrolledManually