Make desktop left and right mouse button actions independent

This commit is contained in:
David Rowe 2018-06-18 20:55:13 +12:00
parent 3c081c4bf8
commit ffd66f4377

View file

@ -315,7 +315,7 @@ Grabber.prototype.pressEvent = function(event) {
return;
}
if (event.isLeftButton !== true || event.isRightButton === true || event.isMiddleButton === true) {
if (event.button !== "LEFT") {
return;
}
@ -419,7 +419,7 @@ Grabber.prototype.pressEvent = function(event) {
};
Grabber.prototype.releaseEvent = function(event) {
if ((event.isLeftButton!==true || event.isRightButton===true || event.isMiddleButton===true) && !HMD.active) {
if (event.button !== "LEFT" && !HMD.active) {
return;
}