Hi,
In most places I use my custom scrollview, however I’ve got some leftovers using the one from widgets.
In some cases I want to stop the scrollview. I thought that calling :scrollToPosition function would solve it, however after stopping it will continue it’s previous movement.
For example, when tapping screen I executed:
local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 0}
it looked like there’s nothing going on. Scrollview moved just as it was before I touched the screen.
I decided to try to extend the time:
local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 1000}
this one’s funny. Scrollview stops for a second and starts scrolling again like it was before I touched the screen.
Is this an expected behavior?
Thanks,
Krystian