From 75a17ff4108f18a1df63c3f9e4c2e05eb46db032 Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Fri, 29 Mar 2024 00:13:46 +0100 Subject: Fix: Clicking outside of article text area closes the article (#6241) --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p') 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; } -- cgit v1.2.3