mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 14:00:00 +00:00
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:
1 parent
15be6a3f75
commit
4caa9672c9
1 file changed
+3
-1
@@ -52,11 +52,13 @@
|
|||||||
UITouch *touch = [[event allTouches] anyObject];
|
UITouch *touch = [[event allTouches] anyObject];
|
||||||
touchLocation = [touch locationInView:self];
|
touchLocation = [touch locationInView:self];
|
||||||
touchMoved = false;
|
touchMoved = false;
|
||||||
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
|
if ([[event allTouches] count] == 1 && !isDragging) {
|
||||||
|
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
|
||||||
target:self
|
target:self
|
||||||
selector:@selector(onDragStart:)
|
selector:@selector(onDragStart:)
|
||||||
userInfo:nil
|
userInfo:nil
|
||||||
repeats:NO];
|
repeats:NO];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user