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

Touch input to drag in newer x3dom libraries #1320

Open
Markus-4DRL opened this issue Apr 16, 2024 · 1 comment
Open

Touch input to drag in newer x3dom libraries #1320

Markus-4DRL opened this issue Apr 16, 2024 · 1 comment

Comments

@Markus-4DRL
Copy link

Hello! Can I ask a question specific to using touch input on x3dom scenes?

We are using a custom version of x3dom 1.7.2, and have unfortunately been unsuccesful in reaching the same productivity with newer x3dom versions. No problems with that so far, but now there one big shortcoming has appeared, and that is that the transformation scene
(https://doc.x3dom.org/tutorials/animationInteraction/transformations/example.html)
does not rotate and translate using touch input when loading this version of x3dom. If there is a touch function in 1.7.2, it seems like grab & drag to rotate the scene takes prevalence over it.
I confirmed that it's the library by switching out the modern library with our custom one. Is there an easy fix for this? What can I try adding to the 1.7.2 version to make touchinput work?

Thank you very much for any support!
Kind regards,
Markus

@andreasplesch
Copy link
Contributor

It sounds like PlaneSensor and CylinderSensor do not work for touch input in 1.7.2 ?
It will be probably necessary to check the commits or blame to see what changed, perhaps starting here:
https://github.com/x3dom/x3dom/blame/c5489754e8571fce582978546443c1250b739942/src/Viewarea.js#L1285

What features/customizations in 1.7.2 prevent you from updating ?

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