From 10d2e1635b50d9ee244a5edb6562d97d0c3baddb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 18 Apr 2020 14:09:19 -0700 Subject: [PATCH] Only hide the cursor over the video region --- Limelight/Input/StreamView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index aed1b32e..e80c1002 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -492,8 +492,8 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; LiSendMousePositionEvent(x - videoOrigin.x, y - videoOrigin.y, videoSize.width, videoSize.height); - // The pointer interaction should cover the entire view - return [UIPointerRegion regionWithRect:self.bounds identifier:nil]; + // The pointer interaction should cover the video region only + return [UIPointerRegion regionWithRect:CGRectMake(videoOrigin.x, videoOrigin.y, videoSize.width, videoSize.height) identifier:nil]; } - (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region API_AVAILABLE(ios(13.4)) {