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:
Mimiste
2016-04-10 13:02:00 +02:00
parent 15be6a3f75
commit 4caa9672c9

View File

@@ -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];
}
}
}