File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
LXReorderableCollectionViewFlowLayout Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,8 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
347347
348348 UICollectionViewLayoutAttributes *layoutAttributes = [self layoutAttributesForItemAtIndexPath: currentIndexPath];
349349
350+ self.longPressGestureRecognizer .enabled = NO ;
351+
350352 __weak typeof (self) weakSelf = self;
351353 [UIView
352354 animateWithDuration: 0.3
@@ -360,6 +362,9 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
360362 }
361363 }
362364 completion: ^(BOOL finished) {
365+
366+ self.longPressGestureRecognizer .enabled = YES ;
367+
363368 __strong typeof (self) strongSelf = weakSelf;
364369 if (strongSelf) {
365370 [strongSelf.currentView removeFromSuperview ];
You can’t perform that action at this time.
0 commit comments