File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
LXReorderableCollectionViewFlowLayout Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,10 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
331331
332332 self.currentViewCenter = self.currentView .center ;
333333
334+ if ([self .delegate respondsToSelector: @selector (collectionView:layout:didBeginDraggingItemAtIndexPath: )]) {
335+ [self .delegate collectionView: strongSelf.collectionView layout: self didBeginDraggingItemAtIndexPath: self .selectedItemIndexPath];
336+ }
337+
334338 __weak typeof (self) weakSelf = self;
335339 [UIView
336340 animateWithDuration: 0.3
@@ -348,10 +352,6 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)gestureRecognizer
348352 __strong typeof (self) strongSelf = weakSelf;
349353 if (strongSelf) {
350354 [highlightedImageView removeFromSuperview ];
351-
352- if ([strongSelf.delegate respondsToSelector: @selector (collectionView:layout:didBeginDraggingItemAtIndexPath: )]) {
353- [strongSelf.delegate collectionView: strongSelf.collectionView layout: strongSelf didBeginDraggingItemAtIndexPath: strongSelf.selectedItemIndexPath];
354- }
355355 }
356356 }];
357357
You can’t perform that action at this time.
0 commit comments