diff --git a/Sources/Filters/Sources/LineSource/example/index.js b/Sources/Filters/Sources/LineSource/example/index.js index 156f13df1a6..2b4e0de3e1e 100644 --- a/Sources/Filters/Sources/LineSource/example/index.js +++ b/Sources/Filters/Sources/LineSource/example/index.js @@ -66,6 +66,7 @@ function updateLine() { gui .add(params, 'resolution') .name('Resolution') + .min(0) .onChange((value) => { params.resolution = Number(value); updateLine(); diff --git a/Sources/Interaction/Style/InteractorStyleTrackballCamera/index.js b/Sources/Interaction/Style/InteractorStyleTrackballCamera/index.js index 0ff10f0f033..2a2cea077b5 100644 --- a/Sources/Interaction/Style/InteractorStyleTrackballCamera/index.js +++ b/Sources/Interaction/Style/InteractorStyleTrackballCamera/index.js @@ -421,7 +421,7 @@ function vtkInteractorStyleTrackballCamera(publicAPI, model) { //---------------------------------------------------------------------------- publicAPI.handleMouseWheel = (callData) => { - const dyf = 1 - callData.spinY / model.zoomFactor; + const dyf = Math.exp(-callData.spinY / model.zoomFactor); publicAPI.dollyByFactor(model.getRenderer(callData), dyf); };