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

Added check for PointerDragBehavior to reenable camera controls, if not reenabled before behavior is disabled #9841

Merged
merged 3 commits into from Jan 25, 2021
Merged

Added check for PointerDragBehavior to reenable camera controls, if not reenabled before behavior is disabled #9841

merged 3 commits into from Jan 25, 2021

Conversation

PolygonalSun
Copy link
Contributor

This PR adds an additional check to the PointerDragBehavior's pointer observable where it will run the releaseDrag function if the behavior was disabled before this function got the chance to run. This prevents the issue of the camera controls being disabled in a situation where dragging could be set as a toggleable function.

@deltakosh deltakosh merged commit 97f6316 into BabylonJS:master Jan 25, 2021
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.

None yet

2 participants