mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Update inspect tool behavior to pan correctly
This commit is contained in:
parent
573e6f119f
commit
2e8e31fce9
1 changed files with 8 additions and 4 deletions
|
@ -500,10 +500,14 @@ function mousePressEvent(event) {
|
|||
}
|
||||
} else if (Menu.isOptionChecked(MENU_INSPECT_TOOL_ENABLED)) {
|
||||
var result = findClickedEntity(event);
|
||||
if (result !== null && event.isRightButton) {
|
||||
var currentProperties = Entities.getEntityProperties(result.entityID);
|
||||
cameraManager.enable();
|
||||
cameraManager.focus(currentProperties.position, null, Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||
if (event.isRightButton) {
|
||||
if (result !== null) {
|
||||
var currentProperties = Entities.getEntityProperties(result.entityID);
|
||||
cameraManager.enable();
|
||||
cameraManager.focus(currentProperties.position, null, Menu.isOptionChecked(MENU_EASE_ON_FOCUS));
|
||||
cameraManager.mousePressEvent(event);
|
||||
}
|
||||
} else {
|
||||
cameraManager.mousePressEvent(event);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue