change address and parent elem for window moving
This commit is contained in:
parent
b62aee6811
commit
f2d9e55385
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user