File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ - (void)cardViewDrag:(UIPanGestureRecognizer *)pan
112
112
UIView *dragView = pan.view ;
113
113
if (pan.state == UIGestureRecognizerStateChanged) { // 正在拖动
114
114
NSLog (@" ----卡片开始移动----" );
115
+ _dragMode = MYCardViewDragByHandMode;
115
116
if ([self .delegate respondsToSelector: @selector (cardView:cardDidSCroll:dragMode: )]) {
116
117
[self .delegate cardView: self cardDidSCroll: _dragIndex dragMode: _dragMode];
117
118
}
@@ -287,6 +288,7 @@ - (void)effectiveEndDragInsertView
287
288
288
289
- (void )excuteSlide : (MYCardViewDragDirectionType)direction
289
290
{
291
+ _dragMode = MYCardViewDragByClickMode;
290
292
CGPoint center = self.firstView .center ;
291
293
if (direction == MYCardViewDragDirectionLeftType) {
292
294
center.x = - CGRectGetWidth (self.firstView .frame )*0.5 ;
You can’t perform that action at this time.
0 commit comments