# Vtk.js model disappeared after rotation

**URL:** <https://discourse.vtk.org/t/vtk-js-model-disappeared-after-rotation/9580>\
**Category:** Web\
**Created:** [October 12, 2022, 10:29am UTC](https://discourse.vtk.org/t/vtk-js-model-disappeared-after-rotation/9580 "2022-10-12T10:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinxiaomu](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/ea666f/32.png) [@kevinxiaomu](https://discourse.vtk.org/u/kevinxiaomu)\
**Post date:** [October 12, 2022, 10:29am UTC](https://discourse.vtk.org/t/vtk-js-model-disappeared-after-rotation/9580/1 "2022-10-12T10:29:18Z")

</div>

The rotation function through the mouse left button is working well before I changed the “pan” function from mouse left + shift button to mouse right button. But after the pan function is changed to mouse right button, the whole model disappeared after pan(with mouse right button) - rotation(with mouse left button).

The modified code is attached, is there something wrong?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/e/eaa69aaac5d95344db342433502b6904988df59f.png)

---

<div class="post-metadata">

**Author:** ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)\
**Post date:** [October 12, 2022, 2:53pm UTC](https://discourse.vtk.org/t/vtk-js-model-disappeared-after-rotation/9580/2 "2022-10-12T14:53:03Z")

</div>

How are you applying the manipulators to the vtkInteractorStyleManipulator?

---

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [October 13, 2022, 2:59pm UTC](https://discourse.vtk.org/t/vtk-js-model-disappeared-after-rotation/9580/3 "2022-10-13T14:59:07Z")

</div>

Did you set the center of rotation?
