-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Adds EventDispatcher and change event to DeviceOrientationControls and FlyControls #19924
Conversation
Can you please edit the files in the
|
Made the changes to the js versions and built the jsm ones 👍 |
Looks good now! Can you please also update the docs for both classes? The idea is to add a new section called |
I only added the Change event to both controls, do you think it's worth adding start and end? ( taking Orbit as an example ) Should be easy enough to do. |
It's probably good if the controls fire similar events if possible. Would be great if you can have a look! 👍 |
I was adding the events but realized that while OrbitControls have precise start and end times ( ie. when the user clicks ), fly and deviceOrientation don't, it's always being updated and doesn't really start/end So I just committed the doc changes, if you think the two controls need more events I can look into that but I would open a new issue and PR |
Hi 👋 |
@mrdoob still needs to review the PR 👍 |
Thanks! |
Implementation is lifted from OrbitControls, it checks dot product for quaternion change and dist Squared for position change
Types now extend EventDispatcher