mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-14 00:47:17 +02:00
fix
This commit is contained in:
parent
5fad7aa51b
commit
8c7c436ef2
1 changed files with 6 additions and 2 deletions
|
@ -309,7 +309,7 @@ Grabber.prototype.computeNewGrabPlane = function() {
|
|||
}
|
||||
|
||||
Grabber.prototype.pressEvent = function(event) {
|
||||
if (!event.isLeftButton) {
|
||||
if (event.isLeftButton!==true ||event.isRightButton===true || event.isMiddleButton===true) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,11 @@ Grabber.prototype.pressEvent = function(event) {
|
|||
//Audio.playSound(grabSound, { position: entityProperties.position, volume: VOLUME });
|
||||
}
|
||||
|
||||
Grabber.prototype.releaseEvent = function() {
|
||||
Grabber.prototype.releaseEvent = function(event) {
|
||||
if (event.isLeftButton!==true ||event.isRightButton===true || event.isMiddleButton===true) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isGrabbing) {
|
||||
this.deactivateEntity(this.entityID);
|
||||
this.isGrabbing = false
|
||||
|
|
Loading…
Reference in a new issue