mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +02:00
Update to ignore mouseRelease events if mousePress event handles by tool
This commit is contained in:
parent
eaad95c949
commit
a474243f08
1 changed files with 7 additions and 1 deletions
|
@ -494,8 +494,10 @@ var mouseHasMovedSincePress = false;
|
|||
|
||||
function mousePressEvent(event) {
|
||||
mouseHasMovedSincePress = false;
|
||||
mouseCapturedByTool = false;
|
||||
|
||||
if (toolBar.mousePressEvent(event) || progressDialog.mousePressEvent(event)) {
|
||||
if (toolBar.mousePressEvent(event) || progressDialog.mousePressEvent(event) || gridTool.mousePressEvent(event)) {
|
||||
mouseCapturedByTool = true;
|
||||
return;
|
||||
}
|
||||
if (isActive) {
|
||||
|
@ -519,6 +521,7 @@ function mousePressEvent(event) {
|
|||
}
|
||||
|
||||
var highlightedEntityID = { isKnownID: false };
|
||||
var mouseCapturedByTool = false;
|
||||
|
||||
function mouseMoveEvent(event) {
|
||||
mouseHasMovedSincePress = true;
|
||||
|
@ -563,6 +566,9 @@ function mouseReleaseEvent(event) {
|
|||
if (isActive && selectionManager.hasSelection()) {
|
||||
tooltip.show(false);
|
||||
}
|
||||
if (mouseCapturedByTool) {
|
||||
return;
|
||||
}
|
||||
|
||||
cameraManager.mouseReleaseEvent(event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue