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

Navigator.maxTouchPoints is always 0 and should not be used #260

Open
danielzgtg opened this issue Feb 23, 2023 · 0 comments
Open

Navigator.maxTouchPoints is always 0 and should not be used #260

danielzgtg opened this issue Feb 23, 2023 · 0 comments

Comments

@danielzgtg
Copy link

d3-zoom does not detect my touchscreen tablet. I have always had navigator.maxTouchPoints === 0`. Other websites such as Steam, Google Maps, and Bing Maps all accept touch input properly. Just nothing that uses d3-zoom accept my touches properly.

One example https://observablehq.com/@d3/pan-zoom-axes?collection=@d3/d3-zoom . The whole page zooms instead of the graph, until I put zoom.touchable(true) after const zoom =[^;]+;. That workaround becomes hard when using d3-zoom through a third-party library such as react-flow which controls the d3-zoom initialization itself.

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

No branches or pull requests

1 participant