mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 17:38:20 +01:00
Minor bug fix on desktop handling
This commit is contained in:
parent
99e0d02581
commit
27ac7c06fc
Binary file not shown.
@ -992,11 +992,22 @@ namespace OS {
|
||||
// desktop[0].set "selected", -1
|
||||
|
||||
$(desktop).on("click", function (e) {
|
||||
let el = $(e.target).closest("afx-app-window")[0];
|
||||
let el:any = $(e.target).closest("afx-app-window")[0];
|
||||
if(el)
|
||||
{
|
||||
return;
|
||||
}
|
||||
el = $(e.target).parent();
|
||||
if (!(el.length > 0)) {
|
||||
return;
|
||||
}
|
||||
el = el.parent();
|
||||
if (!(el.length > 0)) {
|
||||
return;
|
||||
}
|
||||
if (el[0] !== desktop) {
|
||||
return;
|
||||
}
|
||||
desktop.unselect();
|
||||
($("#sysdock")[0] as tag.AppDockTag).selectedApp = null;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user