add hover persistence to app-acct menu
This commit is contained in:
parent
f8ecd9f198
commit
c6a33cab70
3 changed files with 15 additions and 12 deletions
|
|
@ -2094,15 +2094,16 @@
|
|||
UI.scaleX.was = UI.scaleY.was = UI.scaleZ.was = 1;
|
||||
};
|
||||
|
||||
let ltpops = [];
|
||||
UC.hoverPop(UI.ltsetup, { group: ltpops, target: $('set-pop') });
|
||||
UC.hoverPop(UI.ltfile, { group: ltpops, target: $('file-pop') });
|
||||
UC.hoverPop(UI.ltview, { group: ltpops, target: $('pop-view') });
|
||||
UC.hoverPop(UI.ltact, { group: ltpops, target: $('pop-slice') });
|
||||
UC.hoverPop(UI.render, { group: ltpops, target: $('pop-render'), sticky: true });
|
||||
UC.hoverPop(UI.rotate, { group: ltpops, target: $('pop-rotate'), sticky: true });
|
||||
UC.hoverPop(UI.scale, { group: ltpops, target: $('pop-scale'), sticky: true });
|
||||
UC.hoverPop(UI.nozzle, { group: ltpops, target: $('pop-nozzle'), sticky: true });
|
||||
let hpops = [];
|
||||
UC.hoverPop(UI.ltsetup, { group: hpops, target: $('set-pop') });
|
||||
UC.hoverPop(UI.ltfile, { group: hpops, target: $('file-pop') });
|
||||
UC.hoverPop(UI.ltview, { group: hpops, target: $('pop-view') });
|
||||
UC.hoverPop(UI.ltact, { group: hpops, target: $('pop-slice') });
|
||||
UC.hoverPop(UI.render, { group: hpops, target: $('pop-render'), sticky: true });
|
||||
UC.hoverPop(UI.rotate, { group: hpops, target: $('pop-rotate'), sticky: true });
|
||||
UC.hoverPop(UI.scale, { group: hpops, target: $('pop-scale'), sticky: true });
|
||||
UC.hoverPop(UI.nozzle, { group: hpops, target: $('pop-nozzle'), sticky: true });
|
||||
UC.hoverPop($('app-acct'), { group: hpops, target: $('acct-pop') } );
|
||||
|
||||
UC.onBlur([
|
||||
UI.toolName,
|
||||
|
|
|
|||
|
|
@ -909,7 +909,9 @@
|
|||
clearTimeout(closes.timer);
|
||||
popped = false;
|
||||
};
|
||||
el.addEventListener("mouseenter", openit);
|
||||
if (opt.auto !== false) {
|
||||
el.addEventListener("mouseenter", openit);
|
||||
}
|
||||
el.addEventListener("mouseleave", (ev) => {
|
||||
closes.timer = setTimeout(() => {
|
||||
target.classList.remove("hoverpop");
|
||||
|
|
|
|||
Loading…
Reference in a new issue