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

Remove mouseout handlers from OrbitControls #8832

Merged
merged 1 commit into from
Jul 1, 2016

Conversation

unconed
Copy link
Contributor

@unconed unconed commented May 6, 2016

(re: #8157 )

The mouseout handler in OrbitControls was added here: #7434

The change makes no sense because it disables the built-in mouse capturing behavior in OrbitControls, creating a lot of dead code. After removing the mouseout handlers, I can't reproduce any sticky mouse behavior in OS X Chrome, Safari or Firefox:

http://acko.net/files/dump/orbitcontrols/error.html
http://acko.net/files/dump/orbitcontrols/fixed.html

This is particularly bad when you have elements overlapping the renderer, because they also trigger mouseout, e.g. http://acko.net/files/dump/orbitcontrols/overlay.html

So either the original request was due to another browser/OS failing to fire the mouseup event, or a specific situation where mouseup is not firing (iframes?). Either way, the current behavior is not usable nor consistent and this change should be reverted.

@mrdoob
Copy link
Owner

mrdoob commented Jul 1, 2016

Uh! Somehow I missed this one...

@mrdoob mrdoob merged commit e51d15c into mrdoob:dev Jul 1, 2016
@mrdoob
Copy link
Owner

mrdoob commented Jul 1, 2016

Thanks!

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