3d-force-graph
3d-force-graph copied to clipboard
onNodeClick (to focus on node) doesn't work well on iPhoneX
Describe the bug onNodeClick action doesn't work well on iPhone X (maybe all of the versions of iOS). I recognized it when I tested my project page on iPhone X. I had to touch a lot of times to run the code of onNodeClick. (I tested it on iPhone6S, iPhone 12 Pro, Galaxy A10, Galaxy Note 9. It works well on those devices.)
To Reproduce
- on your example 'https://vasturiano.github.io/3d-force-graph/example/click-to-focus/'
- touch the node. (you can use trackpad touch on the desktop.)
- doesn't recognize well the touch action. (It runs on mouse click.)
(You can see it on Browser Stack and Simulator of Xcode.)
Expected behavior It has to run the code below 'onNodeClick' when I touched the node.
Screenshots https://user-images.githubusercontent.com/54765660/126269033-6f97b2d3-aa62-48db-87bc-ee43ec60ec65.mov
In this video, I used the trackpad for the first click of iPhone X action. The second click of iPhone X tested by the mouse.
Smartphone (please complete the following information):
-
Device: iPhoneX
-
OS: iOS 14.5
-
Browser: Safari, Chrome
-
Version (Not sure but the latest.)
I have the exact same problem with the same phone