Skip to content

Commit

Permalink
fixed global tooltip on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 12, 2024
1 parent a8d0727 commit d64696d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand All @@ -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;
}
};

Expand Down

0 comments on commit d64696d

Please sign in to comment.