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
ondragstart and ondragend callbacks prevent scrolling on touch devices #215
Comments
Hi @sandrolino , I'll check this. Please give me some time. |
Hi @sandrolino , I added The latest version 0.1.37 does not include this commit, so please use the latest code from github repository. |
Hi @sandrolino , I updated the version to 0.1.38 that includes this commit. Please try this solution on that version. Thank you. |
Hi there,
works for me as far as making scrolling on touch devices work, but I'm afraid I really don't see it as a good enough solution for my needs as I need to keep the interaction functional. I know this is a tricky problem to deal with, but there are some scripts out there that are designed to detect tap vs swipe. At a minimum, I think the interaction.enabled option needs the possibility to ignore on non-touch devices. The other thing I noticed is that with it set to false, the c3-event-rect-x items are not created. I interact with these programmatically, so removing completely makes interaction.enabeled: false not an option unfortunately. Thanks for considering :) |
It would be very helpful if you could add something like swipe detection. By doing this we could interact with the charts even on mobile devices. Right now we have project where we have several charts in an article. Users can't scroll on the charts, so we have to disable interaction which is sad, because interaction works great on mobile devices. |
I started a new issue about this recently (since closed) due to having not noticed this one. I'm moving discussion to this thread (and reopening) because there's been more work done here. Important point from #798: the problem is in the ondragstart and ondragend callbacks. Disabling those on ln. 233 in |
@Aendrew wow!! thanks you very much. commenting out these lines fixes the problem for us. awesome! |
@masayuki0812 Any update on removing those callbacks? Would it help if I did a PR? I'm currently integrating axisJS into a Node app that allows C3 charts to be used really effortlessly in news stories; however, it totally causes issues on the iPad due to this issue. I can run off a fork for the moment, but it'd be really nice to be able to get that into core... |
I added |
v0.4.9 has been released, so please let me close. |
Yay! 👍 Nicely done, @masayuki0812! |
Adding |
nice! thanks @masayuki0812 |
This issue seems to be persist while using multiple axis using data.xs. can be checked at http://c3js.org/samples/simple_xy_multiple.html |
@subu28 same issue for me (using data.xs) |
I noticed that c3js graphs disable somewhat scrolling on touch devices, probably due to their interactivity.
Disabling Tooltip still results in interactivity when hovering over data points.
Is there away to completely disable hovering over data points (i.e an svg) such that scrolling works on c3js graph works also on touch devices ?
Thanks for your help.
s
The text was updated successfully, but these errors were encountered: