From 949f088ef510eaaa44df357cae003b2b0b91fb4a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 18 Dec 2020 17:10:16 -0600 Subject: [PATCH] Fix dragging mouse on iOS 13 Fixes #440 --- Limelight/Input/StreamView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index a9a5059..e93d007 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -92,6 +92,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; [self addInteraction:[[UIPointerInteraction alloc] initWithDelegate:self]]; UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelMoved:)]; + mouseWheelRecognizer.maximumNumberOfTouches = 0; mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskAll; mouseWheelRecognizer.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)]; [self addGestureRecognizer:mouseWheelRecognizer];