@pmndrs/pointer-events
Advanced tools
Comparing version 6.4.4 to 6.4.5
@@ -79,10 +79,13 @@ import { getVoidObject } from './intersector.js'; | ||
} | ||
function hasObjectListeners({ _listeners, __r3f }) { | ||
if (__r3f != null && __r3f?.eventCount > 0) { | ||
function hasObjectListeners(object) { | ||
if (object.ancestorsHaveListeners) { | ||
return true; | ||
} | ||
if (_listeners == null) { | ||
if (object.__r3f != null && object.__r3f?.eventCount > 0) { | ||
return true; | ||
} | ||
if (object._listeners == null) { | ||
return false; | ||
} | ||
const entries = Object.entries(_listeners); | ||
const entries = Object.entries(object._listeners); | ||
const length = entries.length; | ||
@@ -89,0 +92,0 @@ for (let i = 0; i < length; i++) { |
@@ -50,2 +50,3 @@ import { Object3D, OrthographicCamera, PerspectiveCamera } from 'three'; | ||
interactableDescendants?: Array<Object3D>; | ||
ancestorsHaveListeners?: boolean; | ||
} | ||
@@ -52,0 +53,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE", | ||
"version": "6.4.4", | ||
"version": "6.4.5", | ||
"homepage": "https://github.com/pmndrs/xr", | ||
@@ -8,0 +8,0 @@ "author": "Bela Bohlender", |
103552
2486