# Gizmo rotation validation does not work

**URL:** <https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543>\
**Category:** Bugs\
**Tags:** gizmo\
**Created:** [September 28, 2023, 8:13pm UTC](https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543 "2023-09-28T20:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanin\_artem](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yanin_artem/32/33787_2.png) [@yanin\_artem](https://forum.babylonjs.com/u/yanin_artem)\
**Post date:** [September 28, 2023, 8:13pm UTC](https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543/1 "2023-09-28T20:13:28Z")

</div>

Hello everyone! I’m trying to do validation for gizmo rotation. In the attached playground, the gizmo should not rotate (?) the cube, but it does. It is noteworthy that the same code with position gizmo works as needed. What is it? A bug or something I don’t understand?

> **[Babylon.js Playground](https://playground.babylonjs.com/#IT69BL%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 28, 2023, 10:53pm UTC](https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543/2 "2023-09-28T22:53:37Z")

</div>

Adding @Cedric our Gizmo guru

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 29, 2023, 7:54am UTC](https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543/3 "2023-09-29T07:54:38Z")

</div>

I’m taking a look

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 29, 2023, 8:06am UTC](https://forum.babylonjs.com/t/gizmo-rotation-validation-does-not-work/44543/4 "2023-09-29T08:06:46Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/pull/14365>
>
> fixes for :
> \- https://forum.babylonjs.com/t/gizmos-ondragobservable-outdated-do…cs/44455
