mirror of
https://github.com/lubosz/overte.git
synced 2025-08-13 09:56:04 +02:00
Only grab primary clicks
This commit is contained in:
parent
34889d38c9
commit
1a375432e0
1 changed files with 2 additions and 2 deletions
|
@ -250,11 +250,11 @@
|
||||||
this.cleanupOverlay();
|
this.cleanupOverlay();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clickDownOnEntity = function () {
|
this.clickDownOnEntity = function (id, event) {
|
||||||
if (isInEditMode() || (MyAvatar.sessionUUID === this.getSeatUser())) {
|
if (isInEditMode() || (MyAvatar.sessionUUID === this.getSeatUser())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.canSitDesktop()) {
|
if (event.isPrimaryButton && this.canSitDesktop()) {
|
||||||
this.sitDown();
|
this.sitDown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue