mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 14:16:36 +02:00
Fix orbit camera capturing mouse
This commit is contained in:
parent
0105906dc7
commit
cf798e0a2f
1 changed files with 2 additions and 4 deletions
|
@ -496,14 +496,12 @@ function mousePressEvent(event) {
|
|||
mouseHasMovedSincePress = false;
|
||||
mouseCapturedByTool = false;
|
||||
|
||||
if (toolBar.mousePressEvent(event) || cameraManager.mousePressEvent(event)
|
||||
|| progressDialog.mousePressEvent(event) || gridTool.mousePressEvent(event)) {
|
||||
|
||||
if (toolBar.mousePressEvent(event) || progressDialog.mousePressEvent(event) || gridTool.mousePressEvent(event)) {
|
||||
mouseCapturedByTool = true;
|
||||
return;
|
||||
}
|
||||
if (isActive) {
|
||||
if (selectionDisplay.mousePressEvent(event)) {
|
||||
if (cameraManager.mousePressEvent(event) || selectionDisplay.mousePressEvent(event)) {
|
||||
// Event handled; do nothing.
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue