zhouenguang 3 роки тому
батько
коміт
97944723a7
1 змінених файлів з 2 додано та 3 видалено
  1. 2 3
      web/public/static/js/main_2020_show.js

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

@@ -4927,13 +4927,12 @@ window.Modernizr = function(n, e, t) {
                         if(!currentPanoDestinations) { 
                             // let panoIndex = this.model.panos.list.findIndex( pano => pano.id == this.player.currentPano.id )
                             let panoIndex = this.model.panos.list.indexOf( this.player.currentPano )
-                            let neighbourIndex = [ panoIndex + 1, panoIndex - 1, panoIndex + 2, panoIndex - 2 ]
+                            let neighbourIndex = [ panoIndex + 1, panoIndex - 1, panoIndex + 2, panoIndex - 2, panoIndex + 3, panoIndex - 3 ]
                             for(var i = 0; i < neighbourIndex.length; i++) {
                                 currentPanoDestinations = this.panoIdMap.get(this.model.panos.list[neighbourIndex[i]].id)
                                 if(currentPanoDestinations) break
                             }
-                            if(!currentPanoDestinations) 
-                            currentPanoDestinations.push(0) 
+                            if(!currentPanoDestinations) currentPanoDestinations = [0];
                         }
                         if(currentPanoDestinations.indexOf(this.currentItem[0]) == -1) {
                             this.currentItem[0] = currentPanoDestinations[0]