« get me outta code hell

client: use line-based rects for hoverable tooltip placement - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-29 19:54:35 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-29 19:54:35 -0300
commit281e5fa90615bde3a3cc5b84ab38521a69dd6ba3 (patch)
treecf8bfd4ef35714c22b6d907528c7a959b279b90a /src/static
parentbeb4d7fa789991b1564a694ff73f205655d1bd77 (diff)
client: use line-based rects for hoverable tooltip placement
Diffstat (limited to 'src/static')
-rw-r--r--src/static/client3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/client3.js b/src/static/client3.js
index 6aea86a..1554e32 100644
--- a/src/static/client3.js
+++ b/src/static/client3.js
@@ -1642,7 +1642,7 @@ function getTooltipFromHoverablePlacementOpportunityAreas(hoverable) {
     getTooltipBaselineOpportunityAreas(tooltip);
 
   const hoverableRect =
-    WikiRect.fromElement(hoverable).toExtended(5, 10);
+    WikiRect.fromElementUnderMouse(hoverable).toExtended(5, 10);
 
   const tooltipRect =
     peekTooltipClientRect(tooltip);