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

Add two finger rotation to control rotation #139

Open
DIYer22 opened this issue Nov 29, 2018 · 1 comment
Open

Add two finger rotation to control rotation #139

DIYer22 opened this issue Nov 29, 2018 · 1 comment

Comments

@DIYer22
Copy link

DIYer22 commented Nov 29, 2018

It's hard to control rotation in touchable screen, so may add two finger rotation to control rotation?

@DIYer22 DIYer22 changed the title add two finger rotation to control rotation Add two finger rotation to control rotation Nov 29, 2018
@syt123450
Copy link
Member

syt123450 commented Nov 29, 2018

@DIYer22 Thanks for your suggestion, now TensorSpace mainly use a three.js plugin TrackballControl to control events, it may has some limitation in touch device. It is possible to registered new events for TensorSpace, which are not included in TrackballControl.

Now, user can use two fingers to zoom in or out, translate model in the scene in the touch device, these touch events are provided by TrackballControl. Honestly, I don't have experience adding android's two finger rotation to website, and I am afraid I will break the TrackballControl's functionality QAQ.

If you have any idea how to implement this amazing functionality, feel free to propose it to us or send us a PR ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants