@react-three/fiber
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -254,3 +254,3 @@ 'use strict'; | ||
// Events are not allowed to stop propagation if the pointer has been captured | ||
if ('pointerId' in event && !internal.capturedMap.has(event.pointerId)) { | ||
if (!('pointerId' in event && internal.capturedMap.has(event.pointerId))) { | ||
raycastEvent.stopped = localState.stopped = true; // Propagation is stopped, remove all other hover records | ||
@@ -442,3 +442,3 @@ // An event handler is only allowed to flush other handlers if it is hovered itself | ||
if (!instance.__r3f) { | ||
if (state != null && state.instance || !instance.__r3f) { | ||
instance.__r3f = { | ||
@@ -445,0 +445,0 @@ root: null, |
@@ -254,3 +254,3 @@ 'use strict'; | ||
// Events are not allowed to stop propagation if the pointer has been captured | ||
if ('pointerId' in event && !internal.capturedMap.has(event.pointerId)) { | ||
if (!('pointerId' in event && internal.capturedMap.has(event.pointerId))) { | ||
raycastEvent.stopped = localState.stopped = true; // Propagation is stopped, remove all other hover records | ||
@@ -442,3 +442,3 @@ // An event handler is only allowed to flush other handlers if it is hovered itself | ||
if (!instance.__r3f) { | ||
if (state != null && state.instance || !instance.__r3f) { | ||
instance.__r3f = { | ||
@@ -445,0 +445,0 @@ root: null, |
@@ -221,3 +221,3 @@ import * as THREE from 'three'; | ||
// Events are not allowed to stop propagation if the pointer has been captured | ||
if ('pointerId' in event && !internal.capturedMap.has(event.pointerId)) { | ||
if (!('pointerId' in event && internal.capturedMap.has(event.pointerId))) { | ||
raycastEvent.stopped = localState.stopped = true; // Propagation is stopped, remove all other hover records | ||
@@ -409,3 +409,3 @@ // An event handler is only allowed to flush other handlers if it is hovered itself | ||
if (!instance.__r3f) { | ||
if (state != null && state.instance || !instance.__r3f) { | ||
instance.__r3f = { | ||
@@ -412,0 +412,0 @@ root: null, |
{ | ||
"name": "@react-three/fiber", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "A React renderer for Threejs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
223131
20