change address and parent elem for window moving
This commit is contained in:
parent
b62aee6811
commit
f2d9e55385
@ -7,7 +7,7 @@ class WebDesktopEnvironment{
|
|||||||
constructor(){
|
constructor(){
|
||||||
this.wc = new WindowsCompositor
|
this.wc = new WindowsCompositor
|
||||||
|
|
||||||
fetch("http://localhost:8080/getmockapp" /*, options */)
|
fetch("http://localhost:8080/applications/personalproperties/test" /*, options */)
|
||||||
.then((response) => response.text())
|
.then((response) => response.text())
|
||||||
.then((html) => {
|
.then((html) => {
|
||||||
document.getElementById("WindowsLayer").innerHTML = html;
|
document.getElementById("WindowsLayer").innerHTML = html;
|
||||||
@ -54,7 +54,7 @@ class WindowsCompositor{
|
|||||||
catchClick(event){
|
catchClick(event){
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case event.target.className == "WindowDragArea":
|
case event.target.className == "WindowDragArea":
|
||||||
this.movingElement = event.target.parentElement
|
this.movingElement = event.target.parentElement.parentElement.parentElement
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user