Fixes #17822. Ensure onFlickAnimationStart() is triggered in all scrollTypes, and onFlickAnimationEnd() is not triggered twice when scrolling on one direction with scrollType=2
(cherry picked from commit be1d58bedd7db784d6ad70e56949d4c80cd6bdbe)