zhouenguang 3 年之前
父節點
當前提交
9357375789
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      web/public/static/js/main_2020_show.js

+ 5 - 0
web/public/static/js/main_2020_show.js

@@ -4831,6 +4831,9 @@ window.Modernizr = function(n, e, t) {
                     
                      
                 }
+
+                let oldPos = this.player.position.clone();
+                let oldPano = this.player.currentPano
                 
                 if (this.onTheBus = !0,
                 this.emit("update.controls"),
@@ -4877,6 +4880,8 @@ window.Modernizr = function(n, e, t) {
                     }
                     .bind(this), o),
                     this.emit("update.controls") 
+                    let pano = this.model.panos.index[r.panoId]
+                    this.player.emit("flying.ended", pano.position, oldPos, pano, oldPano) 
                 }
             }
             ,