xzw 2 年之前
父節點
當前提交
13bc0b7e2e
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      scene/public/static/js/main_2020_show.js

+ 9 - 2
scene/public/static/js/main_2020_show.js

@@ -22775,8 +22775,15 @@ window.Modernizr = function(n, e, t) {
                     this.intersect = this.getMouseIntersect(null, hots.concat(this.model.colliders));
                     if(this.intersect){
                         deal()
-                        this.intersectHot && $("#player").css("cursor", "pointer");
-                         
+                        let intersect = this.intersect
+                        if(this.intersectHot){
+                            this.intersect = null
+                            $("#player").css("cursor", "pointer");
+                        }else{  
+                            if(intersect.object.parent.parent.hidden ){//楼层已隐藏
+                                this.intersect = null
+                            } 
+                        }  
                     }
                 }