x3dom / x3dom

X3DOM. A framework for integrating and manipulating X3D scenes as HTML5/DOM elements.
http://x3dom.org
Other
811 stars 271 forks source link

Touch input to drag in newer x3dom libraries #1320

Open Markus-4DRL opened 1 month ago

Markus-4DRL commented 1 month ago

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 commented 3 weeks ago

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 ?