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