« get me outta code hell

client: hoverable-tooltip: prefer downward anchors first - 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>2025-04-02 10:41:45 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-10 16:02:37 -0300
commit4924b717b4bdb3d983a1cf8a92c414ed16732878 (patch)
tree0d28b570ee55b3911a70d0671c446e96d3f6b756 /src/static
parentf231fdc12e6802471b23faaac05cba7604fe96a3 (diff)
client: hoverable-tooltip: prefer downward anchors first
Discussion at #code-quarantine
https://discord.com/channels/749042497610842152/854020929113423924/1356984473396187364
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/client/hoverable-tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/client/hoverable-tooltip.js b/src/static/js/client/hoverable-tooltip.js
index 6eb706ef..9569de3e 100644
--- a/src/static/js/client/hoverable-tooltip.js
+++ b/src/static/js/client/hoverable-tooltip.js
@@ -678,12 +678,12 @@ export function positionTooltipFromHoverableWithBrains(hoverable) {
 
     for (let i = 0; i < numBaselineRects; i++) {
       for (const [dir1, dir2] of [
+        ['down', 'right'],
+        ['down', 'left'],
         ['right', 'down'],
         ['left', 'down'],
         ['right', 'up'],
         ['left', 'up'],
-        ['down', 'right'],
-        ['down', 'left'],
         ['up', 'right'],
         ['up', 'left'],
       ]) {