touch action similar to model viewer #3330
dhruvadhia1
started this conversation in
General
Replies: 1 comment
-
i think To achieve the desired touch interaction using react-three-fiber, you need to combine the library with the drei library for orbit controls and handle touch events to distinguish between horizontal and vertical swipes. Below is a detailed guide on how to implement this in a react-three-fiber application.
Box Component:
|
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
-
Hi There,
I am wondering if there is a way to achieve touch-action: pan-y effect for mobile interaction, so if I first drag horizontally then i can interact with 3d model using orbit controls, otherwise i can scroll the page. It feels intuitive and can allow for both.
the examples on model viewer site on mobile works perfect.
https://modelviewer.dev/
i also tried applying the same css property on canvas, but no luck so far
Beta Was this translation helpful? Give feedback.
All reactions