display(visionOS): disable hidden cursor because it is broken

This commit is contained in:
osy 2024-02-24 22:36:14 -08:00
parent 2947306b27
commit e4dab5dadd
1 changed files with 4 additions and 0 deletions

View File

@ -129,7 +129,11 @@ NS_AVAILABLE_IOS(13.4)
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region {
// Hide cursor while hovering in VM view
if (interaction.view == self.mtkView && self.hasTouchpadPointer) {
#if TARGET_OS_VISION
return nil; // FIXME: hidden pointer seems to jump around due to following gaze
#else
return [UIPointerStyle hiddenPointerStyle];
#endif
}
return nil;
}