diff options
-rw-r--r-- | src/static/js/client/image-overlay.js | 6 |
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; } |