From 4048e20df813c980190fd0a15b7757044f1341cc Mon Sep 17 00:00:00 2001 From: James Hobin Date: Thu, 6 Jun 2024 12:18:54 -0400 Subject: [PATCH] Allow moving spatial sensors while analytics is open --- tools/spatialAnalytics/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/spatialAnalytics/index.js b/tools/spatialAnalytics/index.js index 26b5817..15fad11 100644 --- a/tools/spatialAnalytics/index.js +++ b/tools/spatialAnalytics/index.js @@ -281,6 +281,7 @@ spatialInterface.onSpatialInterfaceLoaded(function() { spatialInterface.setVisibilityDistance(100); spatialInterface.setMoveDelay(300); spatialInterface.setAlwaysFaceCamera(true); + spatialInterface.registerTouchDecider(touchDecider); spatialInterface.initNode('storage', 'storeData'); @@ -367,3 +368,7 @@ function updateDocumentStyles(width, height) { document.body.style.width = width + 'px'; document.body.style.height = height + 'px'; } + +function touchDecider(_eventData) { + return false; +}