mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
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:
1 parent
39b1b65e16
commit
256e40acdc
1 file changed
+1
-1
@@ -53,7 +53,7 @@
|
|||||||
touchLocation = [touch locationInView:self];
|
touchLocation = [touch locationInView:self];
|
||||||
touchMoved = false;
|
touchMoved = false;
|
||||||
if ([[event allTouches] count] == 1 && !isDragging) {
|
if ([[event allTouches] count] == 1 && !isDragging) {
|
||||||
dragTimer = [NSTimer scheduledTimerWithTimeInterval:2.0
|
dragTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
|
||||||
target:self
|
target:self
|
||||||
selector:@selector(onDragStart:)
|
selector:@selector(onDragStart:)
|
||||||
userInfo:nil
|
userInfo:nil
|
||||||
|
|||||||
Reference in new issue
Block a user