Camera inertia after flyTo/setView

Hi Guys,

It appears that there is no way to cancel camera inertia?

If a user is panning, I want to be able to teleport their view to a point and cancel any inertia they have.

I have been unable to find a way to do this. If you fly to a location you would expect that inertia would be cancelled, but the camera will still keep panning.

Example: http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=0c655052cd69f9128e33ea67918be65b

Press the F key to change the view to San Diego instantly. Note that inertia remains if you pan the camera and then press the F key while the camera is still moving. The end result is the camera being off-center.

What do I need to add to the flyToSanDiego() function to cancel any inertia that the camera had before the change of view?

Thanks!

Thanks for the great code example! This looks like a bug. I filed a new GitHub issue here so we can look into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/4947

Best,

Hannah

Thanks Hannah, I appreciate it!