Maybe fix cursor thingey too much not height

This commit is contained in:
somebody
2022-10-12 14:20:57 -05:00
parent af41c8b145
commit 3d2994f89c

View File

@@ -5062,6 +5062,7 @@ function initalizeTooltips() {
}
const xOffset = 10;
const yOffset = 15;
document.addEventListener("mousemove", function(event) {
if (!tooltipActive) return;
@@ -5080,6 +5081,8 @@ function initalizeTooltips() {
let yOverflow = (y + tooltip.clientHeight) - window.innerHeight;
if (yOverflow > 0) y -= yOverflow;
if (yOverflow + yOffset < 0) y += yOffset;
tooltip.style.left = `${x}px`;
tooltip.style.top = `${y}px`;
});