@kitware/vtk.js 24.16.1 → 24.16.2

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.
@@ -342,18 +342,18 @@ function vtkRenderWindowInteractor(publicAPI, model) {
342
342
  if (pointerCache.has(event.pointerId)) {
343
343
  var pointer = pointerCache.get(event.pointerId);
344
344
  pointer.position = getScreenEventPositionFor(event);
345
+ }
345
346
 
346
- switch (event.pointerType) {
347
- case 'pen':
348
- case 'touch':
349
- publicAPI.handleTouchMove(event);
350
- break;
347
+ switch (event.pointerType) {
348
+ case 'pen':
349
+ case 'touch':
350
+ publicAPI.handleTouchMove(event);
351
+ break;
351
352
 
352
- case 'mouse':
353
- default:
354
- publicAPI.handleMouseMove(event);
355
- break;
356
- }
353
+ case 'mouse':
354
+ default:
355
+ publicAPI.handleMouseMove(event);
356
+ break;
357
357
  }
358
358
  };
359
359
 
@@ -678,7 +678,7 @@ function vtkRenderWindowInteractor(publicAPI, model) {
678
678
 
679
679
 
680
680
  publicAPI.recognizeGesture('TouchStart', positions);
681
- } else {
681
+ } else if (pointers.length === 1) {
682
682
  var _callData = _objectSpread(_objectSpread({}, getModifierKeysFor(EMPTY_MOUSE_EVENT)), {}, {
683
683
  position: getScreenEventPositionFor(event),
684
684
  deviceType: getDeviceTypeFor(event)
@@ -694,7 +694,7 @@ function vtkRenderWindowInteractor(publicAPI, model) {
694
694
  if (model.recognizeGestures && pointers.length > 1) {
695
695
  var positions = pointerCacheToPositions(pointerCache);
696
696
  publicAPI.recognizeGesture('TouchMove', positions);
697
- } else {
697
+ } else if (pointers.length === 1) {
698
698
  var callData = _objectSpread(_objectSpread({}, getModifierKeysFor(EMPTY_MOUSE_EVENT)), {}, {
699
699
  position: pointers[0].position,
700
700
  deviceType: getDeviceTypeFor(event)
@@ -733,7 +733,7 @@ function vtkRenderWindowInteractor(publicAPI, model) {
733
733
 
734
734
  publicAPI.recognizeGesture('TouchMove', _positions);
735
735
  }
736
- } else {
736
+ } else if (pointers.length === 1) {
737
737
  var _callData3 = _objectSpread(_objectSpread({}, getModifierKeysFor(EMPTY_MOUSE_EVENT)), {}, {
738
738
  position: pointers[0].position,
739
739
  deviceType: getDeviceTypeFor(event)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.16.1",
3
+ "version": "24.16.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",