1 Second touch for the drag and drop

Changed the timer duration to 1 second to initiate the drag and drop
This commit is contained in:
Mimiste
2016-04-18 19:44:00 +02:00
parent 39b1b65e16
commit 256e40acdc

View File

@@ -53,7 +53,7 @@
touchLocation = [touch locationInView:self];
touchMoved = false;
if ([[event allTouches] count] == 1 && !isDragging) {
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
dragTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
target:self
selector:@selector(onDragStart:)
userInfo:nil