fix iframe window move problem

This commit is contained in:
lxsang 2021-04-01 19:19:45 +02:00
parent d670bd3b3a
commit 77f643a206
4 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -361,6 +361,7 @@ namespace OS {
offset.top = e.clientY - offset.top; offset.top = e.clientY - offset.top;
offset.left = e.clientX - offset.left; offset.left = e.clientX - offset.left;
$(window).on("mousemove", (e) => { $(window).on("mousemove", (e) => {
$(this.refs.win_overlay).show();
let left: number, top: number; let left: number, top: number;
if (this._isMaxi) { if (this._isMaxi) {
this.toggle_window(); this.toggle_window();
@ -385,7 +386,8 @@ namespace OS {
.css("top", `${top}px`) .css("top", `${top}px`)
.css("left", `${left}px`); .css("left", `${left}px`);
}); });
return $(window).on("mouseup", function (e) { return $(window).on("mouseup", (e) => {
$(this.refs.win_overlay).hide();
$(window).off("mousemove", null); $(window).off("mousemove", null);
return $(window).off("mouseup", null); return $(window).off("mouseup", null);
}); });

View File

@ -12,6 +12,9 @@ afx-app-window ul.afx-window-top{
height: 20px; height: 20px;
border-bottom: 1px solid #262626; border-bottom: 1px solid #262626;
} }
afx-app-window div.afx-window-overlay {
top: 22px;
}
afx-app-window ul.afx-window-top li{ afx-app-window ul.afx-window-top li{
margin-left: 3px; margin-left: 3px;
margin-top:4px; margin-top:4px;

View File

@ -12,6 +12,9 @@ afx-app-window ul.afx-window-top{
height: 20px; height: 20px;
border-bottom: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6;
} }
afx-app-window div.afx-window-overlay {
top: 22px;
}
afx-app-window ul.afx-window-top li{ afx-app-window ul.afx-window-top li{
margin-left: 3px; margin-left: 3px;
margin-top:4px; margin-top:4px;