aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-03-29 00:13:46 +0100
committerGravatar GitHub <noreply@github.com> 2024-03-29 00:13:46 +0100
commit75a17ff4108f18a1df63c3f9e4c2e05eb46db032 (patch)
treebe7a726ba5a4b112ee4064b9e27c5fdbc5db2a76 /p
parent5d1493ba988e8a1ccdcdd1fe657b3e0653b6d5fe (diff)
Fix: Clicking outside of article text area closes the article (#6241)
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 031d1dc14..fda17b885 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1167,7 +1167,7 @@ function init_stream(stream) {
if (ev.target.closest('.reader, .content, .item.website, .item.link, .dropdown')) {
return true;
}
- if (!context.sides_close_article && ev.target.matches('.flux_content')) {
+ if ((!context.sides_close_article && ev.target.matches('.flux_content')) || ev.target.closest('footer')) {
// setting for not-closing after clicking outside article area
return false;
}