@inweb/viewer-three 26.12.4 → 26.12.5

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.
@@ -1766,7 +1766,7 @@ class JoyStickControls extends Controls {
1766
1766
  this.overlayElement.style.position = "fixed";
1767
1767
  this.overlayElement.style.zIndex = "0";
1768
1768
  this.overlayElement.style.touchAction = "none";
1769
- document.body.appendChild(this.overlayElement);
1769
+ canvasElement.parentElement.appendChild(this.overlayElement);
1770
1770
  this.joyStickCanvas = document.createElement("canvas");
1771
1771
  this.joyStickCanvas.id = "joyStickCanvas";
1772
1772
  this.joyStickCanvas.width = this.CANVAS_SIZE;