@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
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
switch (event.pointerType) {
|
|
348
|
+
case 'pen':
|
|
349
|
+
case 'touch':
|
|
350
|
+
publicAPI.handleTouchMove(event);
|
|
351
|
+
break;
|
|
351
352
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
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)
|