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

+ 13 - 2
web/public/static/js/main_2020_show.js

@@ -22392,15 +22392,26 @@ window.Modernizr = function(n, e, t) {
                     ()=>{
                         updateCount ++
                         
-                        var oldMaxZoom = this.qualityManager.getMaxZoomPanoSize()
+                        /*var oldMaxZoom = this.qualityManager.getMaxZoomPanoSize()
                         this.qualityManager.updateMaximums()
-                        /* var nowMaxZoom = this.qualityManager.getMaxZoomPanoSize()
+                         var nowMaxZoom = this.qualityManager.getMaxZoomPanoSize()
                         
                         if(nowMaxZoom > oldMaxZoom && this.mode == 'panorama' && this.currentPano.zoomed){
                             this.panoRenderer.resetRenderStatus(this.currentPano.id, !1, !0, oldMaxZoom );
                             this.panoRenderer.clearAllQueuedUploadsForPano(this.currentPano.id);
                             this.panoRenderer.renderPanoTiles(this.currentPano.id, null, !1, !1);
                         } */
+                        
+                        var oldMaxNav = this.qualityManager.getMaxNavPanoSize()
+                        this.qualityManager.updateMaximums()
+                        var nowMaxNav = this.qualityManager.getMaxNavPanoSize()
+                        if(nowMaxNav > oldMaxNav && this.mode == 'panorama' ){
+                            this.panoRenderer.resetRenderStatus(this.currentPano.id, !1, !0, oldMaxNav );
+                            this.panoRenderer.clearAllQueuedUploadsForPano(this.currentPano.id);
+                            this.panoRenderer.renderPanoTiles(this.currentPano.id, null, !1, !1);
+                        } 
+                        
+                        
                         console.log("updateCount "+updateCount)
                         if(updateCount>5){