From e4dab5dadd618462235d3fcdea2bd2680f05e8d7 Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Sat, 24 Feb 2024 22:36:14 -0800 Subject: [PATCH] display(visionOS): disable hidden cursor because it is broken --- Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m b/Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m index 581fd1106..153a5840c 100644 --- a/Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m +++ b/Platform/iOS/Display/VMDisplayMetalViewController+Pointer.m @@ -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; }