From f8df591e72224f4b5a4bd5017c765df75914fa7b Mon Sep 17 00:00:00 2001 From: Jo-Byr Date: Mon, 27 Jul 2026 09:56:36 +0200 Subject: [PATCH 1/2] chore(LineSource): prevent negative resolution in example --- Sources/Filters/Sources/LineSource/example/index.js | 1 + 1 file changed, 1 insertion(+) 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(); From 53e947f11f2a9a3afecac46e16f17b458dcc86ad Mon Sep 17 00:00:00 2001 From: Jo-Byr Date: Mon, 27 Jul 2026 11:25:42 +0200 Subject: [PATCH 2/2] fix(InteractorStyleTrackballCamera): fix mouse wheel handling Replace mouse wheel to dolly factor formula by negative exponential for symmetry and to fix impossibility to dezoom at zoomFactor = 1 --- .../Interaction/Style/InteractorStyleTrackballCamera/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); };