three-render-objects
Advanced tools
Comparing version 1.24.1 to 1.24.2
@@ -494,3 +494,8 @@ 'use strict'; | ||
// left-click | ||
state.onClick(state.hoverObj || null, ev, state.intersectionPoint); // trigger background clicks with null | ||
setTimeout(function () { | ||
return (// asynchronously to allow hoverObj to be set (on frame) | ||
state.onClick(state.hoverObj || null, ev, state.intersectionPoint) | ||
); | ||
} // trigger background clicks with null | ||
); | ||
} | ||
@@ -500,3 +505,7 @@ | ||
// right-click | ||
state.onRightClick(state.hoverObj || null, ev, state.intersectionPoint); | ||
setTimeout(function () { | ||
return (// asynchronously to allow hoverObj to be set (on frame) | ||
state.onRightClick(state.hoverObj || null, ev, state.intersectionPoint) | ||
); | ||
}); | ||
} | ||
@@ -503,0 +512,0 @@ }, true); // use capture phase to prevent propagation blocking from controls (specifically for fly) |
@@ -490,3 +490,8 @@ import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, TextureLoader, Vector2, Vector3, Box3, Color, Mesh, SphereGeometry, MeshBasicMaterial, BackSide, EventDispatcher, MOUSE, Quaternion, Spherical, Clock } from 'three'; | ||
// left-click | ||
state.onClick(state.hoverObj || null, ev, state.intersectionPoint); // trigger background clicks with null | ||
setTimeout(function () { | ||
return (// asynchronously to allow hoverObj to be set (on frame) | ||
state.onClick(state.hoverObj || null, ev, state.intersectionPoint) | ||
); | ||
} // trigger background clicks with null | ||
); | ||
} | ||
@@ -496,3 +501,7 @@ | ||
// right-click | ||
state.onRightClick(state.hoverObj || null, ev, state.intersectionPoint); | ||
setTimeout(function () { | ||
return (// asynchronously to allow hoverObj to be set (on frame) | ||
state.onRightClick(state.hoverObj || null, ev, state.intersectionPoint) | ||
); | ||
}); | ||
} | ||
@@ -499,0 +508,0 @@ }, true); // use capture phase to prevent propagation blocking from controls (specifically for fly) |
{ | ||
"name": "three-render-objects", | ||
"version": "1.24.1", | ||
"version": "1.24.2", | ||
"description": "Easy way to render ThreeJS objects with built-in interaction defaults", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
5148181
37588