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

orbitControl() customizability #7091

Open
1 of 17 tasks
eTrey13 opened this issue Jun 10, 2024 · 3 comments
Open
1 of 17 tasks

orbitControl() customizability #7091

eTrey13 opened this issue Jun 10, 2024 · 3 comments

Comments

@eTrey13
Copy link

eTrey13 commented Jun 10, 2024

Increasing access

Unsure

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

Make orbitControl have options to enable/disable if it controls zoom, pan, and rotation. Sometimes only controlling one or two of those would be useful.

Copy link

welcome bot commented Jun 10, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

@VANSH3104
Copy link

I am interested in this issue you want a toggle between zoom pan and rotation you can achieve it by making an object having all properties and pass it as argument in function

@inaridarkfox4231
Copy link
Contributor

I am the person involved in modifying orbitControl().
Regarding rotation and zoom, this can be prevented by setting the coefficient to 0. Therefore, I feel like there is little point in making it an option, in my opinion.
Regarding pan, it does not work on mobile tphones unless you use two or more fingers. The buttons used on the mouse are also different. I don't quite understand what the problem is.

However, if there is something useful other than the freeRotation option that I have prepared, and it makes sense in terms of convenience, I will not deny its introduction.
Of course, in that case, you need to make sure that the default behavior does not change.

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

3 participants