sebavan 6 năm trước cách đây
mục cha
commit
998e5f8c02

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 5753 - 5747
Playground/babylon.d.txt


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 5753 - 5747
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


+ 11 - 0
dist/preview release/babylon.max.js

@@ -12844,6 +12844,9 @@ var BABYLON;
                     canvas.addEventListener("webglcontextlost", this._onContextLost, false);
                     canvas.addEventListener("webglcontextrestored", this._onContextRestored, false);
                 }
+                if (!options.doNotHandleTouchAction) {
+                    this._disableTouchAction();
+                }
             }
             else {
                 this._gl = canvasOrContext;
@@ -13133,6 +13136,14 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Engine.prototype._disableTouchAction = function () {
+            if (!this._renderingCanvas) {
+                return;
+            }
+            this._renderingCanvas.setAttribute("touch-action", "none");
+            this._renderingCanvas.style.touchAction = "none";
+            this._renderingCanvas.style.msTouchAction = "none";
+        };
         Engine.prototype._rebuildInternalTextures = function () {
             var currentState = this._internalTexturesCache.slice(); // Do a copy because the rebuild will add proxies
             for (var _i = 0, currentState_1 = currentState; _i < currentState_1.length; _i++) {

+ 11 - 0
dist/preview release/babylon.no-module.max.js

@@ -12811,6 +12811,9 @@ var BABYLON;
                     canvas.addEventListener("webglcontextlost", this._onContextLost, false);
                     canvas.addEventListener("webglcontextrestored", this._onContextRestored, false);
                 }
+                if (!options.doNotHandleTouchAction) {
+                    this._disableTouchAction();
+                }
             }
             else {
                 this._gl = canvasOrContext;
@@ -13100,6 +13103,14 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Engine.prototype._disableTouchAction = function () {
+            if (!this._renderingCanvas) {
+                return;
+            }
+            this._renderingCanvas.setAttribute("touch-action", "none");
+            this._renderingCanvas.style.touchAction = "none";
+            this._renderingCanvas.style.msTouchAction = "none";
+        };
         Engine.prototype._rebuildInternalTextures = function () {
             var currentState = this._internalTexturesCache.slice(); // Do a copy because the rebuild will add proxies
             for (var _i = 0, currentState_1 = currentState; _i < currentState_1.length; _i++) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.worker.js


+ 11 - 0
dist/preview release/es6.js

@@ -12811,6 +12811,9 @@ var BABYLON;
                     canvas.addEventListener("webglcontextlost", this._onContextLost, false);
                     canvas.addEventListener("webglcontextrestored", this._onContextRestored, false);
                 }
+                if (!options.doNotHandleTouchAction) {
+                    this._disableTouchAction();
+                }
             }
             else {
                 this._gl = canvasOrContext;
@@ -13100,6 +13103,14 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Engine.prototype._disableTouchAction = function () {
+            if (!this._renderingCanvas) {
+                return;
+            }
+            this._renderingCanvas.setAttribute("touch-action", "none");
+            this._renderingCanvas.style.touchAction = "none";
+            this._renderingCanvas.style.msTouchAction = "none";
+        };
         Engine.prototype._rebuildInternalTextures = function () {
             var currentState = this._internalTexturesCache.slice(); // Do a copy because the rebuild will add proxies
             for (var _i = 0, currentState_1 = currentState; _i < currentState_1.length; _i++) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js