There doesn’t seem to be a built-in function that does this. I tried measuring the distance moved every frame but the distance keeps jumping up and down.
You could store the last 5, 10, 15 values and take an average.
I considered that, but the speed needs to be updated quickly. I could use just the last 3 for faster update, but that’s not the point of my question. Is there a way to get the mathematical speed of the scrollview, maybe the current value that the module uses to calculate the current speed?
You could store the last 5, 10, 15 values and take an average.
I considered that, but the speed needs to be updated quickly. I could use just the last 3 for faster update, but that’s not the point of my question. Is there a way to get the mathematical speed of the scrollview, maybe the current value that the module uses to calculate the current speed?
Hi, lowkeydevelopers
in case you still need it, you can try it
print(your\_scroller.\_view.\_velocity)
hope it help
Hi, lowkeydevelopers
in case you still need it, you can try it
print(your\_scroller.\_view.\_velocity)
hope it help