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

how to handle touch events #115

Open
mle-moni opened this issue Apr 17, 2021 · 1 comment
Open

how to handle touch events #115

mle-moni opened this issue Apr 17, 2021 · 1 comment

Comments

@mle-moni
Copy link

I do not see where you handle mouse events to navigate in the family chart on your code, do you have any clues on how I could handle touch events to make it work on mobile too?

@ErikGartner
Copy link
Owner

Currently the library allows for setting callbacks (e.g. "nodeClick") for mouse clicks.

The callbacks are handled here:

}).on('click', function (d) {

Not sure if it applies to touch event or if you need to setup another D3 listener for that.

/Erik

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