Prevent scrollToPageIndex to continue scrolling after the drag ended