#
luxiaotao1123
2024-03-29 1a27e848577a95d68baaed3eb3c0b04fe4140df0
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -125,9 +125,7 @@
        let that = this;
        const raycaster = new THREE.Raycaster();
        const mouse = new THREE.Vector2();
        this.dom.addEventListener("dblclick", (event) => {
        })
        this.dom.addEventListener("click", (event) => {
        this.handleClickEvent = (event) => {
            let x, y;
            if (event.changedTouches) {
                x = event.changedTouches[0].pageX;
@@ -149,7 +147,8 @@
            if (objName && this.handleClick) {
                this.handleClick(objName, x, y);
            }
        }, false);
        }
        this.dom.addEventListener("click", this.handleClickEvent, false);
    }
    generateMesh = (fn) => {
@@ -176,6 +175,7 @@
            this.controls.dispose();
            this.controls = null;
        }
        this.dom.removeEventListener("click", this.handleClickEvent);
        this.camera = null;
        this.objects = [];
        while (this.dom?.firstChild) {