Disabling rotation when dragging

I am having a bit of trouble stopping rotation from occurring when dragging things on the map. When dragging an object you of course stop rotation with scene.screenSpaceCameraController.enableRotate = false.

This mostly works, except if you quickly drag the object around and release the mouse button while the mouse is still moving. The globe will spin for some reason, and I am not sure how to combat this.

It doesn't make sense to me, because you are re-enabling rotation when the mouse is released, so why would the globe start spinning?

I tried disabling inertiaSpin on mouse down and re-enabling it on mouse up but that appears to make no difference.

In this example you can see the issue: http://analyticalgraphicsinc.github.io/cesium-google-earth-examples/examples/pinDrag.html

Thanks for your help.