From 4caa9672c9a9bfa178a65809b2642ac837d89f86 Mon Sep 17 00:00:00 2001 From: Mimiste Date: Sun, 10 Apr 2016 13:02:00 +0200 Subject: [PATCH] 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 --- Limelight/Input/StreamView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index ee387b1..9886d7d 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -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]; + } } }