lxcid / LXReorderableCollectionViewFlowLayout

Extends `UICollectionViewFlowLayout` to support reordering of cells. Similar to long press and pan on books in iBook.
http://lxcid.com/
MIT License
1.86k stars 328 forks source link

Fixed bug of extraneous cells on rapid tapping. #68

Closed timfether closed 9 years ago

timfether commented 10 years ago

Setting the longPressGestureRecognizer’s minimumPressDuration property to 0, and then rapidly tapping on cells can cause extra cells to show up that are not able to be moved in any way. This fixes that issue by disabling the longPressGestureRecognizer until the animation that happens when the long press ends.

tiagomnh commented 9 years ago

I was having the exact same issue and developed a similar solution. This PR should definitely be accepted.

Good work, @timfether. :+1:

lxcid commented 9 years ago

Oops sorry for taking so long, this looks good indeed. Merging.