Wrong position of touch from touch screen #536
Unanswered
kozakromch
asked this question in
Q&A
Replies: 1 comment
-
Thanks for the nice words 🙏 The problem is probably the same as #338 and #390, so something to do with getting the correct size of the viewport on web mobile. However, I also noticed that you set the canvas to a fixed size, maybe the gui is hidden because the canvas is bigger than your screen? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Thank you for such a great library. I find it really flexible and ease to work.
I have some problem with touch screen and I would appreciate if someone could help me.
I have a website where I realize methods from physics simulation articles. For some complicated one I try to use Rust and your library as a visualizer.
game_physics
I put the demo to main page. So back to the problem: If you open this page on computer, the pick function and GUI works great(One can change parameters and grab cube) But If you open this page on mobile or in mobile mode in chrome browser, it is only possible to rotate it and nothing more.
touchscreent.mp4
You can find code here github
Am i doing smth wrong? It is kinda strange that even GUI don't work. Thanks in advance.
Btw, As you can see, I make custom_pick that also return the depth of ray intersection and also add rotation velocity to orbit control. Maybe you consider this to add to your library.
Beta Was this translation helpful? Give feedback.
All reactions