Rotating globe only clockwise

Hi everyone!

I need to limit the user’s possibility to rotate the globe only clockwise (or Counterclockwise, is the same);

I think I should put something inside this function:

  viewer.scene.preRender.addEventListener(function()     { ....});

but I don’t know what…

Thank you very much for any suggestion!
Luca A.

Hi,
This should not related to cesium. It should be a Javascript approach. You can avoid mouse dragging for certain directions. Check this stackoverflow link.

I hope it will help you.

  • Regards

Hi @luca.affini,

I agree with @Jacky’s suggestions. The simplest solution likely leans on a JavaScript approach (and not the CesiumJS API).

-Sam