# Zoom in/out mouse controls and orientation not working in a a slice view outside the view layout

**URL:** https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783
**Category:** Development
**Created:** [July 30, 2020, 12:43am UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783 "2020-07-30T00:43:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)
#### Post date: [July 30, 2020, 12:43am UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783/1 "2020-07-30T00:43:30Z")

</div>

Hi everyone,

I follow the scrypt repository example for adding a slice view outside the view layout and it works straightforward but I have some trouble with volumes managing.  
1.- Mouse controls (zoom, move, scroll slices) don´t work  
2.- Orientation Presets ComboBox just show “Reformat”.  
3.- Volume ReSlice Driver Module let me change Orientation but it doesn´t update properly when I change “mode” or “rotation”, just when I change “driver”

Thanks on advance

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [July 30, 2020, 12:15pm UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783/2 "2020-07-30T12:15:32Z")

</div>

Hi - Please provide a small reproducible example script.

---

<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: [July 30, 2020, 1:08pm UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783/3 "2020-07-30T13:08:36Z")

</div>

I was able to reproduce the problem using the example in the script repository.

The script has to be tuned a bit because initialization is slightly different since event handling is moved to widgets. I’ll post an update once I figured out what exactly need to be changed.

---

<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: [July 30, 2020, 2:52pm UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783/4 "2020-07-30T14:52:25Z")

</div>

I’ve updated the [example script](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Show_a_slice_view_outside_the_view_layout) (slice logic had to be registered with the application), view interactions work now.

---

<div class="post-metadata">

### Author: ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)
#### Post date: [July 31, 2020, 12:55pm UTC](https://discourse.slicer.org/t/zoom-in-out-mouse-controls-and-orientation-not-working-in-a-a-slice-view-outside-the-view-layout/12783/5 "2020-07-31T12:55:40Z")

</div>

Thanks @lassoan, works like a charm.
