Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
fixes #8 (accidental dragging, while scrolling)
Browse files Browse the repository at this point in the history
  • Loading branch information
calimarkus committed Oct 23, 2014
1 parent b853739 commit 6a60f47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/DroppableView/JDDroppableView.m
Expand Up @@ -59,6 +59,14 @@ - (void)commonInit;
- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
[super touchesBegan:touches withEvent:event];

// don't do anything, if scrollview is actively tracking atm
for (UIGestureRecognizer *recognizer in self.scrollView.gestureRecognizers) {
if (recognizer.state == UIGestureRecognizerStateBegan || recognizer.state == UIGestureRecognizerStateChanged) {
return;
}
}

[self beginDrag];
[self dragAtPosition:[[touches anyObject] locationInView:self.superview]
animated:YES];
Expand Down

0 comments on commit 6a60f47

Please sign in to comment.