Skip to content

Commit

Permalink
fix: sphere collider not triggering down/up/click events
Browse files Browse the repository at this point in the history
  • Loading branch information
Bela Bohlender committed Oct 25, 2023
1 parent 268024f commit 8246020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coconut-xr/xinteraction",
"version": "0.1.11",
"version": "0.1.12",
"homepage": "https://coconut-xr.github.io/xinteraction",
"license": "SEE LICENSE IN LICENSE",
"description": "interactions for three.js",
Expand Down
2 changes: 1 addition & 1 deletion src/react/sphere-collider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const XSphereCollider = forwardRef<
translator.update(
{},
true,
pressedElementsChangedRef.current,
pressedElementsChangedRef.current || distanceElement != null,
...pressedElementIds
);
pressedElementsChangedRef.current = false;
Expand Down

0 comments on commit 8246020

Please sign in to comment.