Replies: 1 comment 4 replies
-
this is inbuilt. each node can have onPointerMissed, which triggers when you click anything but the node. and then there's onPointerMissed on the canvas itself, which triggers if you really didnt hit anything whatsoever. you can try it out here: https://codesandbox.io/s/floating-shoe-forked-qxjoj click the shoe, dialog winds up, click elsewhere, it goes away. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to make a Reach hook that helps me detect clicks outside a mesh/group(/and so on) with a ref.
Like this https://codesandbox.io/s/outside-alerter-hooks-lmr2y?module=/src/OutsideAlerter.js&file=/src/OutsideAlerter.js:811-841 but with three-fiber. Any ideas how I can do this?
Beta Was this translation helpful? Give feedback.
All reactions