@xeokit/xeokit-sdk 2.6.86 → 2.6.87

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.86",
3
+ "version": "2.6.87",
4
4
  "description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -92,12 +92,13 @@ class TouchPickHandler {
92
92
  const rightClickPageY = touches[0].pageY;
93
93
 
94
94
  states.longTouchTimeout = setTimeout(() => {
95
- controllers.cameraControl.fire("rightClick", { // For context menus
96
- pagePos: [Math.round(rightClickPageX), Math.round(rightClickPageY)],
97
- canvasPos: [Math.round(rightClickClientX), Math.round(rightClickClientY)],
98
- event: e
99
- }, true);
100
-
95
+ if (configs.active && configs.pointerEnabled) {
96
+ controllers.cameraControl.fire("rightClick", { // For context menus
97
+ pagePos: [Math.round(rightClickPageX), Math.round(rightClickPageY)],
98
+ canvasPos: [Math.round(rightClickClientX), Math.round(rightClickClientY)],
99
+ event: e
100
+ }, true);
101
+ }
101
102
  states.longTouchTimeout = null;
102
103
  }, configs.longTapTimeout);
103
104