-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix selection logic #569
Fix selection logic #569
Conversation
Preview PR at appsharing.space |
Integration tests report: appsharing.space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works Great, thanks @martinRenou
private _hasOrbited = false; // Whether the last orbit control run has actually orbited | ||
private _disabledNextClick = false; // We set this when we stop orbiting, to prevent the next click event | ||
private _controls: OrbitControls; // Camera controls | ||
private _startMousePosition = new THREE.Vector2(); // Start mouse position when dragging the camera controls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grouping these 2 properties under one object helps us reduce 1 line of code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I'll do it in a follow up PR
Finalize fix #557