mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 12:04:03 +02:00
don't mouse-grab things through an overlay
This commit is contained in:
parent
1c5e1bb5ea
commit
b4df7cada7
1 changed files with 6 additions and 1 deletions
|
@ -316,7 +316,12 @@ Grabber.prototype.pressEvent = function(event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.isLeftButton!==true ||event.isRightButton===true || event.isMiddleButton===true) {
|
if (event.isLeftButton !== true || event.isRightButton === true || event.isMiddleButton === true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Overlays.getOverlayAtPoint(Reticle.position) > 0) {
|
||||||
|
// the mouse is pointing at an overlay; don't look for entities underneath the overlay.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue