From 54728d63ce28a8ec86cd79eb0f1b509c5e5b7fad Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Mon, 29 Jul 2024 13:12:13 +0300 Subject: [PATCH] add: docs --- src/common/platform.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/platform.js b/src/common/platform.js index 170967f85..7e423489a 100644 --- a/src/common/platform.js +++ b/src/common/platform.js @@ -18,6 +18,8 @@ const Bowser = require('bowser'); const browser = Bowser.parse(window.navigator?.userAgent || ''); +// Edge case: iPad is included in this function +// Keep in mind maxTouchPoints for Vision Pro might change in the future const isVisionProUser = () => { const isMacintosh = navigator.userAgent.includes('Macintosh'); const hasFiveTouchPoints = navigator.maxTouchPoints === 5;