@kitware/vtk.js 24.16.5 → 24.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,7 +199,10 @@ function vtkMouseRangeManipulator(publicAPI, model) {
199
199
  // and the last `onMouseMove` event, we must make sure the pointer
200
200
  // is still locked before we run this logic otherwise we may
201
201
  // get a `onMouseMove` call after the pointer has been unlocked.
202
- if (!interactor.isPointerLocked()) return;
202
+ if (!interactor.isPointerLocked()) return; // previousPosition could be undefined if for some reason the
203
+ // `startPointerLockEvent` method is called before the `onButtonDown` one.
204
+
205
+ if (model.previousPosition == null) return;
203
206
  model.previousPosition.x += event.movementX;
204
207
  model.previousPosition.y += event.movementY;
205
208
  publicAPI.onMouseMove(interactor, renderer, model.previousPosition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.16.5",
3
+ "version": "24.16.6",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",