Skip to content

Commit

Permalink
Allow moving spatial sensors while analytics is open
Browse files Browse the repository at this point in the history
  • Loading branch information
hobinjk-ptc committed Jun 11, 2024
1 parent b8dc506 commit 4048e20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/spatialAnalytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ spatialInterface.onSpatialInterfaceLoaded(function() {
spatialInterface.setVisibilityDistance(100);
spatialInterface.setMoveDelay(300);
spatialInterface.setAlwaysFaceCamera(true);
spatialInterface.registerTouchDecider(touchDecider);

spatialInterface.initNode('storage', 'storeData');

Expand Down Expand Up @@ -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;
}

0 comments on commit 4048e20

Please sign in to comment.