I have subclassed HorizontalScrollView so that I have some kind of custom scroll behavior, but found that smoothScrollTo doesn't always work. I had to get around this problem using the following code:
smoothScrollTo(x, y); scrollTo(x, y);
This ensures that the scroll is actually executed, even if the smoothScrollTo function does not work, since scrollTo works every time. Why is this happening? How can I get smoothScrollTo to work every time?
source share