three-render-objects 1.40.2 → 1.40.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -314,7 +314,7 @@ var threeRenderObjects = Kapsule({
|
|
|
314
314
|
}
|
|
315
315
|
function setLookAt(lookAt) {
|
|
316
316
|
var lookAtVect = new three.Vector3(lookAt.x, lookAt.y, lookAt.z);
|
|
317
|
-
if (state.controls.target) {
|
|
317
|
+
if (state.controls.enabled && state.controls.target) {
|
|
318
318
|
state.controls.target = lookAtVect;
|
|
319
319
|
} else {
|
|
320
320
|
// Fly controls doesn't have target attribute
|
|
@@ -473,9 +473,9 @@ var threeRenderObjects = Kapsule({
|
|
|
473
473
|
|
|
474
474
|
// detect point drag
|
|
475
475
|
!state.isPointerDragging && ev.type === 'pointermove' && (ev.pressure > 0 || state.isPointerPressed) // ev.pressure always 0 on Safari, so we used the isPointerPressed tracker
|
|
476
|
-
&& (ev.pointerType
|
|
476
|
+
&& (ev.pointerType === 'mouse' || ev.movementX === undefined || [ev.movementX, ev.movementY].some(function (m) {
|
|
477
477
|
return Math.abs(m) > 1;
|
|
478
|
-
})) // relax drag trigger sensitivity on touch events
|
|
478
|
+
})) // relax drag trigger sensitivity on non-mouse (touch/pen) events
|
|
479
479
|
&& (state.isPointerDragging = true);
|
|
480
480
|
if (state.enablePointerInteraction) {
|
|
481
481
|
// update the pointer pos
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "three-render-objects",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.4",
|
|
4
4
|
"description": "Easy way to render ThreeJS objects with built-in interaction defaults",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"three": ">=0.168"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.
|
|
60
|
-
"@babel/preset-env": "^7.
|
|
59
|
+
"@babel/core": "^7.28.0",
|
|
60
|
+
"@babel/preset-env": "^7.28.0",
|
|
61
61
|
"@rollup/plugin-babel": "^6.0.4",
|
|
62
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
62
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
64
64
|
"@rollup/plugin-terser": "^0.4.4",
|
|
65
|
-
"@types/react": "^19.1.
|
|
66
|
-
"postcss": "^8.5.
|
|
65
|
+
"@types/react": "^19.1.8",
|
|
66
|
+
"postcss": "^8.5.6",
|
|
67
67
|
"rimraf": "^6.0.1",
|
|
68
|
-
"rollup": "^4.
|
|
68
|
+
"rollup": "^4.44.1",
|
|
69
69
|
"rollup-plugin-dts": "^6.2.1",
|
|
70
70
|
"rollup-plugin-postcss": "^4.0.2",
|
|
71
|
-
"three": "^0.
|
|
71
|
+
"three": "^0.178.0",
|
|
72
72
|
"typescript": "^5.8.3"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|