mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Make camera stop rotating upon mouse interaction
This commit is contained in:
@@ -233,9 +233,13 @@ SkyBrowserModule::SkyBrowserModule()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (action == MouseAction::Press && _mouseOnPair) {
|
||||
handleMouseClick(button);
|
||||
return true;
|
||||
if (action == MouseAction::Press) {
|
||||
_isCameraRotating = false;
|
||||
if (_mouseOnPair) {
|
||||
handleMouseClick(button);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else if (_interactionMode != MouseInteraction::Hover &&
|
||||
action == MouseAction::Release) {
|
||||
|
||||
Reference in New Issue
Block a user