From d64696d369f8f58a1ce5db49c1a49f53b567ace1 Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Thu, 12 Dec 2024 16:09:04 +0300 Subject: [PATCH] fixed global tooltip on scroll --- src/app/modules/components/Tooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/components/Tooltip.tsx b/src/app/modules/components/Tooltip.tsx index 78b972e..cb2b3f4 100644 --- a/src/app/modules/components/Tooltip.tsx +++ b/src/app/modules/components/Tooltip.tsx @@ -88,7 +88,6 @@ export const UseGlobalTooltip = ({ text, children, className, opacity = ".9" }: element.id = 'global_tooltip'; element.innerText = text; element.className = `${Style.tooltipStyle} ${Style.globalTooltipStyle}`; - element.style.opacity = opacity; document.body.insertBefore(element, document.body.firstChild); }; @@ -105,6 +104,7 @@ export const UseGlobalTooltip = ({ text, children, className, opacity = ".9" }: if (tooltip) { tooltip.style.left = position_x.toString() + 'px'; tooltip.style.top = position_y.toString() + 'px'; + tooltip.style.opacity = opacity; } };