|
@@ -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]
|