Bläddra i källkod

Fix: Clicking outside of article text area closes the article (#6241)

maTh 2 år sedan
förälder
incheckning
75a17ff410
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      p/scripts/main.js

+ 1 - 1
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;
 			}