Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClick not working on Segment component #1955

Open
jacopocolo opened this issue May 8, 2024 · 0 comments
Open

onClick not working on Segment component #1955

jacopocolo opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jacopocolo
Copy link

  • three version: 0.164.1
  • @react-three/fiber version: 8.16.4
  • @react-three/drei version: 9.105.6

Problem description:

Adding an onClick handler on a Segment component doesn't work. I expected it to fire an even like Line does.

Relevant code:

Sandbox here: https://codesandbox.io/p/sandbox/agitated-ganguly-zwl6p6
it doesn't show much but I added an onClick handler on both a <Box/> and a <Segment/> and the Segment doesn't work

Suggested solution:

Clicking on a segment with onClick should fire the event.

@jacopocolo jacopocolo added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant