Enable pointer interaction on the PC and app grid items

This commit is contained in:
Cameron Gutman
2020-04-18 11:24:02 -07:00
parent de05214728
commit 177ecdbe0b
2 changed files with 10 additions and 0 deletions

View File

@@ -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];

View File

@@ -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;