Only grab primary clicks

This commit is contained in:
Atlante45 2017-03-06 16:09:31 -08:00
parent 34889d38c9
commit 1a375432e0

View file

@ -250,11 +250,11 @@
this.cleanupOverlay();
}
this.clickDownOnEntity = function () {
this.clickDownOnEntity = function (id, event) {
if (isInEditMode() || (MyAvatar.sessionUUID === this.getSeatUser())) {
return;
}
if (this.canSitDesktop()) {
if (event.isPrimaryButton && this.canSitDesktop()) {
this.sitDown();
}
}