mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(view) onOverLayClick
This commit is contained in:
parent
1e5a8ae82b
commit
c64b024d59
1 changed files with 2 additions and 2 deletions
|
|
@ -248,13 +248,13 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
var isCurrent,
|
||||
position = CloudCmd.MousePosition,
|
||||
element = document.elementFromPoint(position.x, position.y),
|
||||
isChild = element.firstChild,
|
||||
classList = element.classList,
|
||||
isOverlay = classList.contains(NAME);
|
||||
|
||||
if (isOverlay && isChild) {
|
||||
if (isOverlay) {
|
||||
DOM.hide(overlay);
|
||||
element = DOM.getCurrentByPosition(position);
|
||||
DOM.show(overlay);
|
||||
|
||||
if (element) {
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue