|
@@ -2055,16 +2055,18 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
})
|
|
|
|
|
|
viewer.addEventListener('camera_changed',(e)=>{
|
|
|
- //重新获取visibleTiles
|
|
|
- Common.intervalTool.isWaiting(
|
|
|
- 'update4kTiles',
|
|
|
- () => {
|
|
|
- console.log('update4kTiles')
|
|
|
- let vectorForward = this.getDirection()
|
|
|
- this.updateTiles(vectorForward)
|
|
|
- },
|
|
|
- 500
|
|
|
- )
|
|
|
+ if(e.viewport == viewer.mainViewport){
|
|
|
+ //重新获取visibleTiles
|
|
|
+ Common.intervalTool.isWaiting(
|
|
|
+ 'update4kTiles',
|
|
|
+ () => {
|
|
|
+ console.log('update4kTiles')
|
|
|
+ let vectorForward = this.getDirection()
|
|
|
+ this.updateTiles(vectorForward)
|
|
|
+ },
|
|
|
+ 500
|
|
|
+ )
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|