mirror of
https://github.com/lubosz/overte.git
synced 2025-04-18 04:18:17 +02:00
Merge pull request #13402 from ctrlaltdavid/21895
Make desktop left and right mouse button actions independent
This commit is contained in:
commit
2da3192c33
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue