How to perform scroll top to bottom in Android

I want to scroll from top to bottom in android currently im using this to scroll it is working and scrolling but the problem with this is it is not accurately scrolling sometimes it scroll 2 elements sometimes 3 elements , Is there is any other alternative way to perform scrolling in android ?
.perform(function(){
const actions = this.actions();
return actions.move({x: 100, y: 500}).press().move({origin: ‘pointer’, y: -80, duration: 50}).release();
})