notsobigcompany/CardStack

finalCurrentIndex gets out of range

Closed this issue · 1 comments

The finalCurrentIndex goes out of range when dragging left on the first card or dragging right on the last card. This results in finalCurrentIndex taking values of -1 or data.count, causing errors in other use cases.

Please consider merging this PR for the fix.

Hi @phillipcaudell, can you help me review this PR?