@kitware/vtk.js 26.9.2 → 26.9.3
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.
|
@@ -633,9 +633,10 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
633
633
|
|
|
634
634
|
|
|
635
635
|
if (model.wheelTimeoutID === 0) {
|
|
636
|
-
//
|
|
637
|
-
//
|
|
638
|
-
|
|
636
|
+
// we attempt to distinguish between trackpads and mice
|
|
637
|
+
// .3 will be larger than the first trackpad event,
|
|
638
|
+
// but small enough to detect some common edge case mice
|
|
639
|
+
if (Math.abs(callData.spinY) >= 0.3) {
|
|
639
640
|
// Event is coming from mouse wheel
|
|
640
641
|
wheelCoefficient = Math.abs(callData.spinY);
|
|
641
642
|
} else {
|