Drag and drop
The drag and drop is now enabled only if touching with one finger. The tap to drop does not fire another timer
This commit is contained in:
parent
15be6a3f75
commit
4caa9672c9
1 changed files with 3 additions and 1 deletions
|
|
@ -52,11 +52,13 @@
|
|||
UITouch *touch = [[event allTouches] anyObject];
|
||||
touchLocation = [touch locationInView:self];
|
||||
touchMoved = false;
|
||||
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
|
||||
if ([[event allTouches] count] == 1 && !isDragging) {
|
||||
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
|
||||
target:self
|
||||
selector:@selector(onDragStart:)
|
||||
userInfo:nil
|
||||
repeats:NO];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue