Fixing a startingIndex possibly < 0 when scrolling the view for bounce effect
Generated dist