cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] The VOI of viewport is reset after the stack image changed using StackScrollMouseWheelTool.

Open mivan08 opened this issue 2 years ago • 1 comments

Describe the Bug

I've added several tools using toolGroup to a viewport and all the tool feature are working fine. But I have faced one issue, which is the VOI reset after the stack image changed using the StackScrollMouseWheelTool. Please check this issue asap, and let me know the solution. Thanks.

Steps to Reproduce

Steps to reproduce this issue:

  1. Select the WindowLevelTool and change the VOI of viewport.
  2. Select another tool just like Zoom or PanTool and take zoom or pan the viewport.
  3. Back to the WindowLevelTool and try to change the VOI again.
  4. The previous VOI value is kept and I am able to change the VOI from the previous value smoothely.
  5. Then change the VOI again and select the StackScrollMouseWheelTool.
  6. Change the image index with scroll and go back to the WindowLevelTool, try to change the VOI again.
  7. The previous VOI value is no longer kept and it started changing from the initial VOI value.
  8. This can give some bad experiences to users because it is not working smoothly and the user can loose the previous VOI state. PS: This issue is not occurred if I don't change the the stackImage even I select the StackScrollMouseWheelTool.

The current behavior

The previous VOI value should is not kept after the stack image changed.

The expected behavior

The previous VOI value should be kept after the stack image changed.

OS

Window10

Node version

18.17.0

Browser

Chrome 119.0.6045.123

mivan08 avatar Nov 09 '23 14:11 mivan08

Can you share a video or steps to reproduce?

sedghi avatar Jan 10 '24 13:01 sedghi