Stop swiping beyond the end.