We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d91462 + 9558dd7 commit 705b98dCopy full SHA for 705b98d
1 file changed
LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m
@@ -347,6 +347,8 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
347
348
UICollectionViewLayoutAttributes *layoutAttributes = [self layoutAttributesForItemAtIndexPath:currentIndexPath];
349
350
+ self.longPressGestureRecognizer.enabled = NO;
351
+
352
__weak typeof(self) weakSelf = self;
353
[UIView
354
animateWithDuration:0.3
@@ -360,6 +362,9 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
360
362
}
361
363
364
completion:^(BOOL finished) {
365
366
+ self.longPressGestureRecognizer.enabled = YES;
367
368
__strong typeof(self) strongSelf = weakSelf;
369
if (strongSelf) {
370
[strongSelf.currentView removeFromSuperview];
0 commit comments