diff options
| author | Fuwn <[email protected]> | 2024-01-15 19:29:22 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-15 19:29:22 -0800 |
| commit | d6e3d400c406a3f48000ed4b740bdbf0a3191620 (patch) | |
| tree | c9dff50cde37e848f0c0ec994ccdb6c3734d31df /src/lib/Tooltip | |
| parent | revert(debug): remove tooltip from localstorage (diff) | |
| download | due.moe-d6e3d400c406a3f48000ed4b740bdbf0a3191620.tar.xz due.moe-d6e3d400c406a3f48000ed4b740bdbf0a3191620.zip | |
fix(tooltip): force above
Diffstat (limited to 'src/lib/Tooltip')
| -rw-r--r-- | src/lib/Tooltip/tooltip.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Tooltip/tooltip.ts b/src/lib/Tooltip/tooltip.ts index 50ebcc17..ba3ef817 100644 --- a/src/lib/Tooltip/tooltip.ts +++ b/src/lib/Tooltip/tooltip.ts @@ -30,6 +30,7 @@ const tooltip = (element: HTMLElement) => { const mouseMove = (event: MouseEvent) => { if (div) { div.style.left = `${ + above || event.pageX - div.offsetWidth / 2 > 0 || event.pageX + div.offsetWidth / 2 > window.innerWidth ? event.pageX - div.offsetWidth / 2 |