Comparing version 1.0.7 to 1.0.8
@@ -247,7 +247,10 @@ 'use strict'; | ||
return; | ||
} | ||
} // Tiny offset to clip ray on AR devices | ||
// that don't have handedness set to 'none' | ||
var offset = -0.01; | ||
ray.visible = true; | ||
ray.scale.y = it.hoverRayLength; | ||
ray.position.z = -it.hoverRayLength / 2; | ||
ray.scale.y = it.hoverRayLength + offset; | ||
ray.position.z = -it.hoverRayLength / 2 - offset; | ||
}); | ||
@@ -254,0 +257,0 @@ }); |
@@ -217,7 +217,10 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose'; | ||
return; | ||
} | ||
} // Tiny offset to clip ray on AR devices | ||
// that don't have handedness set to 'none' | ||
const offset = -0.01; | ||
ray.visible = true; | ||
ray.scale.y = it.hoverRayLength; | ||
ray.position.z = -it.hoverRayLength / 2; | ||
ray.scale.y = it.hoverRayLength + offset; | ||
ray.position.z = -it.hoverRayLength / 2 - offset; | ||
}); | ||
@@ -224,0 +227,0 @@ }); |
{ | ||
"name": "react-xr", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54390
1274