|
@@ -321,10 +321,9 @@
|
|
this._enabled = false;
|
|
this._enabled = false;
|
|
|
|
|
|
var engine = this._scene.getEngine();
|
|
var engine = this._scene.getEngine();
|
|
- var parentElement = engine.getRenderingCanvas().parentElement;
|
|
|
|
|
|
|
|
this._scene.unregisterAfterRender(this._syncData);
|
|
this._scene.unregisterAfterRender(this._syncData);
|
|
- parentElement.removeChild(this._globalDiv);
|
|
|
|
|
|
+ document.body.removeChild(this._globalDiv);
|
|
|
|
|
|
window.removeEventListener("resize", this._syncPositions);
|
|
window.removeEventListener("resize", this._syncPositions);
|
|
|
|
|
|
@@ -474,8 +473,6 @@
|
|
private _generateDOMelements(): void {
|
|
private _generateDOMelements(): void {
|
|
this._globalDiv.id = "DebugLayer";
|
|
this._globalDiv.id = "DebugLayer";
|
|
|
|
|
|
- this._globalDiv.style.position = "absolute";
|
|
|
|
-
|
|
|
|
// Drawing canvas
|
|
// Drawing canvas
|
|
this._drawingCanvas = document.createElement("canvas");
|
|
this._drawingCanvas = document.createElement("canvas");
|
|
this._drawingCanvas.id = "DebugLayerDrawingCanvas";
|
|
this._drawingCanvas.id = "DebugLayerDrawingCanvas";
|
|
@@ -626,6 +623,9 @@
|
|
this._generateCheckBox(this._optionsSubsetDiv, "Textures", this._scene.texturesEnabled, (element) => { this._scene.texturesEnabled = element.checked });
|
|
this._generateCheckBox(this._optionsSubsetDiv, "Textures", this._scene.texturesEnabled, (element) => { this._scene.texturesEnabled = element.checked });
|
|
|
|
|
|
// Global
|
|
// Global
|
|
|
|
+
|
|
|
|
+ this._globalDiv.style.position = "absolute";
|
|
|
|
+ this._globalDiv.style.pointerEvents = "none";
|
|
this._globalDiv.appendChild(this._statsDiv);
|
|
this._globalDiv.appendChild(this._statsDiv);
|
|
this._globalDiv.appendChild(this._logDiv);
|
|
this._globalDiv.appendChild(this._logDiv);
|
|
this._globalDiv.appendChild(this._optionsDiv);
|
|
this._globalDiv.appendChild(this._optionsDiv);
|