|
@@ -254,12 +254,12 @@ var initOverlay = function(THREE) {
|
|
|
Overlay.prototype.updateVisibles = function(panos) {
|
|
|
var v = !!panos.find(pano=>this.visiblePanos.includes(pano))
|
|
|
|
|
|
- if(this == window.leftBtn || this == window.rightBtn){
|
|
|
+ /* if(this == window.leftBtn || this == window.rightBtn){
|
|
|
this.visible = v && this.visible_;
|
|
|
return;
|
|
|
- }else{
|
|
|
+ }else{ */
|
|
|
this.visible = v
|
|
|
- }
|
|
|
+ //}
|
|
|
|
|
|
|
|
|
|
|
@@ -276,11 +276,11 @@ var initOverlay = function(THREE) {
|
|
|
Overlay.updateVisibles = function(panos) {
|
|
|
if (panos === true) {
|
|
|
player.overlayGroup.children.forEach(e=>{
|
|
|
- if(e == window.leftBtn || e == window.rightBtn){
|
|
|
+ /* if(e == window.leftBtn || e == window.rightBtn){
|
|
|
e.visible = e.visible_;
|
|
|
- }else{
|
|
|
+ }else{ */
|
|
|
e.visible = true
|
|
|
- }
|
|
|
+ //}
|
|
|
})
|
|
|
} else {
|
|
|
player.overlayGroup.children.forEach(e=>e.updateVisibles(panos))
|
|
@@ -299,6 +299,7 @@ var initOverlay = function(THREE) {
|
|
|
this.plane.material.map.image.paused && this.plane.material.map.image.play()
|
|
|
if(this.hasSound){
|
|
|
manage.switchBgmState(false)
|
|
|
+ g_bgAudio.pauseByVideo = true
|
|
|
}
|
|
|
//console.log("play")
|
|
|
}
|