viewer.camera.flyTo doesn't work when the browse inactive(underground)

Hi All,

When the browse inactive(underground), the function viewer.camera.flyTo doesn’t work, but all others are running normally.

After switch the browse to active, the flyTo function will go on.

What is the reason? Is there any way to make the function run as normal even though the browse is inactive?

Thank you so much.

I find the reason, when the browse is inactive, the requestAnimationFrame(render) is no longer called.
Is anyone knows how to call the function by manually?

Hi there,

This is not Cesium; this is the browser suspending “background” tabs. We don’t have direct control over this. As for the requestAnimationFrame issues, check out this thread: https://stackoverflow.com/questions/35028470/make-requestanimationframe-animation-persist-when-on-different-tab

Flights however are locked to wall time, so when you return to your tab, you should see the finished result of the animation.

Best,

  • Rachel