Skip to content

Commit

Permalink
display(visionOS): disable hidden cursor because it is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Feb 25, 2024
1 parent 2947306 commit e4dab5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ - (BOOL)hasTouchpadPointer {
- (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;
}
Expand Down

0 comments on commit e4dab5d

Please sign in to comment.