# Markups Jump Slices functionality is broken on preview

**URL:** <https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602>\
**Category:** Support\
**Created:** [January 24, 2022, 8:05pm UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602 "2022-01-24T20:05:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 24, 2022, 8:05pm UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602/1 "2022-01-24T20:05:48Z")

</div>

Tested with latest preview on Linux. Clicking on the control points do not jump the slice view to those coordinates.  
There is no error message that I can see.

@smrolfe @lassoan

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [January 24, 2022, 8:30pm UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602/2 "2022-01-24T20:30:12Z")

</div>

For me clicking on rows in the control points table does not respect the “Jump Slices” option in the Markups module. However, clicking on the control points in the slice view does work except that it always does the “Jump slices - centered” option.

It is a bit unclear to me what the difference might be between the jump slices option in the “Crosshair Selection” toolbar and the jump slices option in the markups module. Does the toolbar method change what happens when you click on the point in the slice views? If so, it doesn’t appear to respect that option.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/3/83a1b08cf774d5886fa9a3a5d2aa881eee6aabd2.png)

---

<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:** [January 24, 2022, 9:25pm UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602/3 "2022-01-24T21:25:21Z")

</div>

Indeed, “Jump slices” in Markups module is indeed broken in the latest Slicer Preview Release. It would be great if @smrolfe could fix this before Slicer5 is released (as always, within 1-2 weeks).

Other things seem to work as intended:

- Jump slices option in the Crosshair toolbar button controls how the slices are moved if the crosshair is moved (using Shift+MouseMove). By default, “offset” mode is used so that Shift+MouseMove can be used for slice browsing.
- Clicking on a control point in a slice view always uses “centered” mode, as typically you want to see that point and “offset” mode does not guarantee this (even if the point is visible, it may be very hard to find if not centered and there are other points in the same plane).

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [January 24, 2022, 9:36pm UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602/4 "2022-01-24T21:36:03Z")

</div>

Thanks, I am looking into this (and the ROI color issue) now!

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [January 28, 2022, 2:09am UTC](https://discourse.slicer.org/t/markups-jump-slices-functionality-is-broken-on-preview/21602/5 "2022-01-28T02:09:44Z")

</div>

I submitted a fix for the broken “jump slices” function and a [related bug](https://discourse.slicer.org/t/syncing-markups-edit-state-with-control-point-lock/21606/2) in the pull request:

> <https://github.com/Slicer/Slicer/pull/6142>
>
> This commit addresses issue: https://github.com/Slicer/Slicer/issues/5912
> 
> The… color assigned to a ROI created using the single node placement buttons in the Markups module and Markups Toolbar are varied to be consistent with the varying color of nodes created using continuous placement mode.
> 
> The colormap used for the ROIs is changed from the vtkMRMLColorTableNodeRandom to MediumChartColors, which are more distinguishable.
