change address and parent elem for window moving

This commit is contained in:
cyber-dream 2023-03-15 15:33:56 +03:00
parent b62aee6811
commit f2d9e55385

View File

@ -7,7 +7,7 @@ class WebDesktopEnvironment{
constructor(){
this.wc = new WindowsCompositor
fetch("http://localhost:8080/getmockapp" /*, options */)
fetch("http://localhost:8080/applications/personalproperties/test" /*, options */)
.then((response) => response.text())
.then((html) => {
document.getElementById("WindowsLayer").innerHTML = html;
@ -54,7 +54,7 @@ class WindowsCompositor{
catchClick(event){
switch (true) {
case event.target.className == "WindowDragArea":
this.movingElement = event.target.parentElement
this.movingElement = event.target.parentElement.parentElement.parentElement
break;
default:
break;