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

The moveEnd event raised by the camera delayed. #2950

Closed
ZacBrownBand opened this issue Aug 19, 2015 · 3 comments
Closed

The moveEnd event raised by the camera delayed. #2950

ZacBrownBand opened this issue Aug 19, 2015 · 3 comments

Comments

@ZacBrownBand
Copy link

When a user drags and lets go of the 3d globe, there is a moveStart event when the camera begins to move. If the user stops moving the mouse before releasing, the translation inertia is not used and moveEnd event is fired as expected. If the user lets go of the mouse while the camera is moving, the inertia keeps the camera's position moving. The moveEnd event is not fired for a delayed time as the camera continues to move just a smaller and smaller rate.

Possible cause / solution:
In the ScreenSpaceCameraController it seems like the decay method has no lower bound on its return causing the camera do continue doing infinitely small translations before coming to a stop and raising the moveEnd event.

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 19, 2015

Thanks for the report @ZacBrownBand. I believe this is a duplicate of #2839. Do you agree?

@ZacBrownBand
Copy link
Author

@pjcozzi Yes, that is the same issue. I was unable to find that one while looking for open issues. Feel free to close this one.

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 19, 2015

OK, thanks!

@pjcozzi pjcozzi closed this as completed Aug 19, 2015
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

No branches or pull requests

2 participants