mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
只允许左键选中。
This commit is contained in:
parent
8249687944
commit
b2402f58d3
@ -407,7 +407,7 @@ Editor.prototype.onMouseDown = function (event) {
|
||||
var intersect = this.raycaster.intersectObjects(this.scene.children, true)[0];
|
||||
|
||||
if (intersect) {
|
||||
this.app.call(`intersect`, this, intersect);
|
||||
this.app.call(`intersect`, this, intersect, event);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -34,6 +34,10 @@ PickEvent.prototype.stop = function () {
|
||||
};
|
||||
|
||||
PickEvent.prototype.onMouseDown = function (event) {
|
||||
if (event.button !== 0) { // 只允许左键选中
|
||||
return;
|
||||
}
|
||||
|
||||
var container = this.app.viewport.container;
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user