# 3D Rotation without mouse press after Popup "Operate on invisible segment?"

**URL:** <https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889>\
**Category:** Support\
**Created:** [December 22, 2022, 6:12pm UTC](https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889 "2022-12-22T18:12:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deep\_Learning](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deep_learning/32/15345_2.png) [@Deep\_Learning](https://discourse.slicer.org/u/Deep_Learning)\
**Post date:** [December 22, 2022, 6:12pm UTC](https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889/1 "2022-12-22T18:12:20Z")

</div>

I am assuming that this is a small bug.  
Have had this problem with many versions of Slicer including 5.3.0.

Here is a reproducible example.  
Download Sample Data CTChest.  
Run TotalSegmentator.  
Select All Segmentation nodes.  
Toggle Visibility.  
Turn on only Aorta visibility.  
Switch to Segment Module.  
Probably need to select master volume.  
Press Show 3D and Center View.

Select Scissors.  
\*_Note Aorta is visible, but spleen is selected. **My bad, user error** _

Now, try to use scissors in 3D view. First mouse button.  
Popup “Operate on invisible segment?”  
Press cancel.

Now move cursor in 3DView without mouse press…  
“3D Rotation without mouse press”!!!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 22, 2022, 6:47pm UTC](https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889/2 "2022-12-22T18:47:16Z")

</div>

Thanks for reporting this. I’ve also run into this issue a few times and it is indeed a bug. The workaround is to deactivate the effect and click in the view. I’ve added an issue to track the resolution:

> <https://github.com/Slicer/Slicer/issues/6748>
>
> \## Summary
> 
> Mouse behavior is incorrect after initiating editing operation on …a hidden segment and the "Operate on invisible segment" popup is displayed.
> 
> Reported at: https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889
> 
> \## Steps to reproduce
> 
> \- Download Sample Data CTChest.
> \- Create a segment
> \- Hide the segment
> \- Activate Scissor effect
> \- Click in the 3D view
> \- Popup appears: “Operate on invisible segment?”
> \- Press cancel.
> \- Move cursor in 3D view (without mouse button press)
> 
> The 3D view rotates as the mouse is moved around.
> 
> \## Expected behavior
> 
> After the popup is dismissed, the view should work correctly (only rotates if the mouse button is depressed).
> 
> \## Workaround
> 
> After the popup is displayed, the proper mouse behavior can be achieved by deactivating the effect and clicking in the view. 
> 
> \## Environment
> \- Slicer version: Slicer-5.2.1
> \- Operating system: all

---

<div class="post-metadata">

**Author:** ![Deep\_Learning](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deep_learning/32/15345_2.png) [@Deep\_Learning](https://discourse.slicer.org/u/Deep_Learning)\
**Post date:** [December 22, 2022, 7:04pm UTC](https://discourse.slicer.org/t/3d-rotation-without-mouse-press-after-popup-operate-on-invisible-segment/26889/3 "2022-12-22T19:04:52Z")

</div>

Thanks, I always thought that it was my fault.  
Maybe it was a feature that I did not understand  
Maybe I was dragging the mouse, triple clicking, etc.

Only the ease of use of the TotalSegmenter Module allowed reproducibility.
