Currently Orbit Controls handles touch as:
It's a fantastic helper library, but I think panning is terribly hard to discover. I only discovered it by looking through the library, and don't think I would have discovered it just by playing around with a scene on a touchscreen device.
As a user, I would expect to be able to pan using two fingers moving unidirectionally. I would expect to be able to zoom using two fingers, in a pinching and zoom gesture. I would suggest instead:
I haven't implemented this yet, but I'm thinking to in the next couple of weeks. I couldn't find a related issue or discussion of this so I'm opening a ticket and see if anyone has pre-existing ideas or concerns around this? I could contribute a PR in the future if it's a desirable change.
Related: #10597
@mrdoob I'd like to take this if no one is working on it :)
I actually have this working and am waiting on #13242 to be merged/rejected.
Is that feature working yet?
How can I utilize 2 fingers panning?
Same question from me. Would be very interested in two finger panning.
@WestLangley the PR #13242 has been merged :)
Do you need help for this one ? I think I'll be able to work on it next week
@moroine I'll file what I have this week and you can see if you can improve it. :)
@WestLangley I think I've also some stuff. I'm taking back our library based on three.js and there is a lot of stuff done on our side based on copy/past three.js then edit but as you can imagine that's a nightmare to maintain. So I've dediced to do some PR of theses features (it will take some time)
If this feature is already merged, Can someone please guide, how we can implement same in our existing three.js application.
@BashCloud Sorry, this is not a help site. Try the three.js forum, and show what you have tried.
Fixed in #13706. Closing.
@mrdoob hello Mr.mrdoor I am very interesting in threejs ,And I have been encounter with a problem, about orbit control 's pan ,I have been controll target and camera for pan ,but it's not very good for pan ,I want to use this value property or method "pan" in orbit control ,I will be very thank you for your help! thank you very much Mr!
@chinabo This is not a help site, but you can get help at https://discourse.threejs.org.
Use the most recent version of three.js.
Most helpful comment
I actually have this working and am waiting on #13242 to be merged/rejected.