mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Enable pointer interaction on the PC and app grid items
This commit is contained in:
@@ -61,6 +61,11 @@ static UIImage* noImage;
|
|||||||
// but we want it unrasterized for tvOS where it must be scaled.
|
// but we want it unrasterized for tvOS where it must be scaled.
|
||||||
self.layer.shouldRasterize = YES;
|
self.layer.shouldRasterize = YES;
|
||||||
self.layer.rasterizationScale = [UIScreen mainScreen].scale;
|
self.layer.rasterizationScale = [UIScreen mainScreen].scale;
|
||||||
|
|
||||||
|
if (@available(iOS 13.4, *)) {
|
||||||
|
// Allow the button style to change when moused over
|
||||||
|
self.pointerInteractionEnabled = YES;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[self updateAppImage];
|
[self updateAppImage];
|
||||||
|
|||||||
@@ -77,6 +77,11 @@ static const int LABEL_DY = 20;
|
|||||||
#else
|
#else
|
||||||
[self addSubview:_hostOverlay];
|
[self addSubview:_hostOverlay];
|
||||||
[self addSubview:_hostSpinner];
|
[self addSubview:_hostSpinner];
|
||||||
|
|
||||||
|
if (@available(iOS 13.4, *)) {
|
||||||
|
// Allow the button style to change when moused over
|
||||||
|
self.pointerInteractionEnabled = YES;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
Reference in New Issue
Block a user