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

Trackball fixes #3474

Closed
wants to merge 2 commits into from
Closed

Trackball fixes #3474

wants to merge 2 commits into from

Conversation

kevinoe
Copy link
Contributor

@kevinoe kevinoe commented May 13, 2013

So I've somewhat re-factored how I handled both the screen->element coordinates and the spherical (vs oblong) trackball issues.

Instead of changing getMouseProjectionOnBall, I changed the "screen" variable and the updater in handleResize. This has the side effect that it also affects the pan & zoom elements, but they seem to work fine.

Finally, I've also put in the "noRoll" option which toggles the external roll "ring"

BUGZID:
Summary:
This switches the "screen" variable to use the domElement's dimensions & location rather
than the window.

It also removes the "radius" variable in favor of using each dimension's value (ie
width & height)
@kevinoe
Copy link
Contributor Author

kevinoe commented May 15, 2013

@mrdoob This look reasonable?

@mrdoob
Copy link
Owner

mrdoob commented May 15, 2013

This looks great to me! Good example of how good PR should look like :)
Thanks for your patience!

@mrdoob
Copy link
Owner

mrdoob commented May 15, 2013

Actually... You should use and target the dev branch instead :/

@kevinoe
Copy link
Contributor Author

kevinoe commented May 15, 2013

Doh!

@mrdoob
Copy link
Owner

mrdoob commented May 15, 2013

Almost there! ;)

@kevinoe kevinoe closed this May 15, 2013
@kevinoe kevinoe mentioned this pull request Aug 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants