Skip to content

Commit

Permalink
fix: container with size 0 always triggers onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Mar 12, 2024
1 parent d5592f5 commit 5ec6d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uikit/src/panel/interaction-panel-mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function makePanelRaycast(mesh: Mesh): Mesh['raycast'] {
planeHelper.normal.set(0, 0, 1)
planeHelper.applyMatrix4(matrixWorld)
if (
planeHelper.distanceToPoint(raycaster.ray.origin) < 0 ||
planeHelper.distanceToPoint(raycaster.ray.origin) <= 0 ||
raycaster.ray.intersectPlane(planeHelper, vectorHelper) == null
) {
return
Expand Down

0 comments on commit 5ec6d1f

Please sign in to comment.