ignore right clicks

This commit is contained in:
David Back 2018-04-27 11:30:45 -07:00
parent 9bf5549000
commit 0962e1fc16

View file

@ -796,7 +796,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
};
var onMousePress = function(event) {
if (isInEditMode()) { // don't consider any mouse clicks on the entity while in edit
if (isInEditMode() || event.isRightButton) { // don't consider any mouse clicks on the entity while in edit
return;
}
var pickRay = Camera.computePickRay(event.x, event.y);