1. A concise explanation of the problem you’re experiencing.
I swipe the globe, causing it to rotate and slow down with inertia.
While it is still rotating from the swipe, I click on a button causing a camera.flyTo to a position on the map.
The problem I am seeing is that after the flyTo is complete, the globe continues to move in the inertial direction it was before the flyTo.
I am looking for a way to reset the camera movement caused by input, so the globe does not continue to move after the camera flight is complete.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
I made the following codesandbox illustrating the issue: https://codesandbox.io/s/focused-hill-otlr5
Click, drag and release the globe in any direction to give it some intertial movement.
200ms after releasing the mouse, the code does a camera.flyTo to moscow.
You should see intertial movement after the camera flyTo has occurred.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I have a globe filled with markers. When you click on a marker, I want to fly to that position. Currently after the flyto is done, I sometimes see leftover inertial movement from the initial .
4. The Cesium version you’re using, your operating system and browser.
Demo is running on Cesium 1.64. My OS is OSX Catalina on latest Chrome 78.