removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -104,22 +104,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (!global.__tarinaiTooltipGlobalBound) {
|
||||
global.__tarinaiTooltipGlobalBound = true;
|
||||
document.addEventListener("pointerdown", (e) => {
|
||||
if (!activeTooltipElement) return;
|
||||
if (activeTooltipElement.contains?.(e.target)) return;
|
||||
hideTooltip();
|
||||
}, { capture: true, passive: true });
|
||||
document.addEventListener("touchstart", (e) => {
|
||||
if (!activeTooltipElement) return;
|
||||
if (activeTooltipElement.contains?.(e.target)) return;
|
||||
hideTooltip();
|
||||
}, { capture: true, passive: true });
|
||||
window.addEventListener("scroll", hideTooltip, { passive: true });
|
||||
window.addEventListener("resize", hideTooltip, { passive: true });
|
||||
document.addEventListener("visibilitychange", () => { if (document.hidden) hideTooltip(); });
|
||||
}
|
||||
document.addEventListener("pointerdown", (e) => {
|
||||
if (!activeTooltipElement) return;
|
||||
if (activeTooltipElement.contains?.(e.target)) return;
|
||||
hideTooltip();
|
||||
}, { capture: true, passive: true });
|
||||
document.addEventListener("touchstart", (e) => {
|
||||
if (!activeTooltipElement) return;
|
||||
if (activeTooltipElement.contains?.(e.target)) return;
|
||||
hideTooltip();
|
||||
}, { capture: true, passive: true });
|
||||
window.addEventListener("scroll", hideTooltip, { passive: true });
|
||||
window.addEventListener("resize", hideTooltip, { passive: true });
|
||||
document.addEventListener("visibilitychange", () => { if (document.hidden) hideTooltip(); });
|
||||
|
||||
global.TarinaiTooltips = Object.freeze({
|
||||
bind: bindTooltip,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue