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

onGlobeClick, onPathClick not working #211

Open
Jportilla1980 opened this issue Jul 27, 2024 · 3 comments
Open

onGlobeClick, onPathClick not working #211

Jportilla1980 opened this issue Jul 27, 2024 · 3 comments

Comments

@Jportilla1980
Copy link

Hi, im trying to trigger a function on clicking a path using onPathClick but nothing happens,
tried to implement the click using this.raycaster.intersectObjects(children, true);
and the path clicked as "Line2" but doesnt have the userData to pass the json properties data.

i noticed that the demo for emit-arcs-on-click also nothing happens when click on globe (onGlobeClick)
is there any settings that must be true or false for this to happen, is there a sample ?

@vasturiano
Copy link
Owner

@Jportilla1980 thanks for reaching out.

I'm unable to reproduce your issue, both methods work fine for me. Also on this example if you click on the globe it should emit an arc to the location. Do you get a different behavior?

If you're still having issues please make a simple reproducible example on https://codepen.io/ so that we can debug further.

@Jportilla1980
Copy link
Author

Apologies, i found the reason of the problem and is the click using a wacom pencil as a mouse, it seems the pointer click is not performing the same way as in touch or using a mouse left click. Just a thing to consider. best regards

@vasturiano
Copy link
Owner

@Jportilla1980 thanks for the extra info on this. Is it possible that the pencil is slightly moving when tapping, so that it's being interpreted as a globe rotation instead of a click?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants