Skip to content

Commit 3b712c4

Browse files
sankheshfloryst
authored andcommitted
fix(imagemapper): change slice interaction to use window size instead of viewport
This will ensure that different sized viewports in the same window will exhibit the same behavior.
1 parent 2f85a5e commit 3b712c4

File tree

1 file changed

+1
-1
lines changed
  • Sources/Interaction/Style/InteractorStyleImage

1 file changed

+1
-1
lines changed

Sources/Interaction/Style/InteractorStyleImage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function vtkInteractorStyleImage(publicAPI, model) {
206206
viewportHeight = 2.0 * distance * Math.tan(0.5 * angle);
207207
}
208208

209-
const size = rwi.getView().getViewportSize(renderer);
209+
const size = rwi.getView().getSize();
210210
const delta = (dy * viewportHeight) / size[1];
211211
distance += delta;
212212

0 commit comments

Comments
 (0)