From 7d47aea75d16f68870fe96c216b0987bb34ad324 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 12 Nov 2026 21:49:11 +0000 Subject: [PATCH] fix(view): include mouse fields in macOS touch debug descriptions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 33ea5c72-8bbd-448d-aa21-c9b99dd03c96 --- .../react/renderer/components/view/BaseTouch.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp index 2f67bcf75f80..52f5c5972ade 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp @@ -49,12 +49,12 @@ std::vector getDebugProps( {"target", getDebugDescription(touch.target, options)}, {"force", getDebugDescription(touch.force, options)}, {"timestamp", getDebugDescription(touch.timestamp, options)}, -#if TARGET_OS_SX // [macOS - {"button", getDebugDescription(touch.button, options)}, - {"altKey", getDebugDescription(touch.altKey, options)}, - {"ctrlKey", getDebugDescription(touch.ctrlKey, options)}, - {"shiftKey", getDebugDescription(touch.shiftKey, options)}, - {"metaKey", getDebugDescription(touch.metaKey, options)}, +#if TARGET_OS_OSX // [macOS + {"button", getDebugDescription(touch.button, options)}, + {"altKey", getDebugDescription(touch.altKey, options)}, + {"ctrlKey", getDebugDescription(touch.ctrlKey, options)}, + {"shiftKey", getDebugDescription(touch.shiftKey, options)}, + {"metaKey", getDebugDescription(touch.metaKey, options)}, #endif // macOS] }; }