« get me outta code hell

client: image-overlay: take clicks far beneath action bar - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-03-20 18:32:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-03-20 18:32:12 -0300
commitc00be212b5e4689409cdbf0a629bb62a2e8b3765 (patch)
tree9a0716850c8a30c70b8b29a8cb035a92a8780747
parentf0609f5ec4e249b06d782bd805947818dc7c5144 (diff)
client: image-overlay: take clicks far beneath action bar
-rw-r--r--src/static/js/client/image-overlay.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/client/image-overlay.js b/src/static/js/client/image-overlay.js
index 13a891bd..bcb1b277 100644
--- a/src/static/js/client/image-overlay.js
+++ b/src/static/js/client/image-overlay.js
@@ -93,10 +93,10 @@ function handleContainerClicked(evt) {
     return;
   }
 
-  // If you clicked anything close to or beneath the action bar, don't hide
-  // the image overlay.
+  // If you clicked anything near the action bar, don't hide the
+  // image overlay.
   const rect = info.actionContainer.getBoundingClientRect();
-  if (evt.clientY >= rect.top - 40) {
+  if (evt.clientY >= rect.top - 40 && evt.clientY <= rect.bottom + 40) {
     return;
   }