From c00be212b5e4689409cdbf0a629bb62a2e8b3765 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 20 Mar 2025 18:32:12 -0300 Subject: client: image-overlay: take clicks far beneath action bar --- src/static/js/client/image-overlay.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit 1.3.0-6-gf8a5