@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
- // 0.4 is roughly half-way between a large trackpad first event and small
637
- // mouse wheel first event.
638
- if (Math.abs(callData.spinY) > 0.4) {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "26.9.2",
3
+ "version": "26.9.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",