From 177ecdbe0ba24ffe54c8316444474d2f20f42ebe Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 18 Apr 2020 11:24:02 -0700 Subject: [PATCH] Enable pointer interaction on the PC and app grid items --- Limelight/UIAppView.m | 5 +++++ Limelight/UIComputerView.m | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Limelight/UIAppView.m b/Limelight/UIAppView.m index 611a687f..b20604d3 100644 --- a/Limelight/UIAppView.m +++ b/Limelight/UIAppView.m @@ -61,6 +61,11 @@ static UIImage* noImage; // but we want it unrasterized for tvOS where it must be scaled. self.layer.shouldRasterize = YES; self.layer.rasterizationScale = [UIScreen mainScreen].scale; + + if (@available(iOS 13.4, *)) { + // Allow the button style to change when moused over + self.pointerInteractionEnabled = YES; + } #endif [self updateAppImage]; diff --git a/Limelight/UIComputerView.m b/Limelight/UIComputerView.m index c37d98c8..f2e65027 100644 --- a/Limelight/UIComputerView.m +++ b/Limelight/UIComputerView.m @@ -77,6 +77,11 @@ static const int LABEL_DY = 20; #else [self addSubview:_hostOverlay]; [self addSubview:_hostSpinner]; + + if (@available(iOS 13.4, *)) { + // Allow the button style to change when moused over + self.pointerInteractionEnabled = YES; + } #endif return self;