Fixes #17822. Ensure onFlickAnimationStart() is triggered in all scrollTypes, and onFlickAnimationEnd() is not triggered twice when scrolling on one direction in scrollType 2

Fixes [#17822](https://bugs.dojotoolkit.org/ticket/17822).