From 3a696929b7d8e20acab41d3be000e4243abd892b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 14 May 2026 13:00:45 +0200 Subject: [PATCH] Fix click mark as read (#8817) Fix https://github.com/FreshRSS/FreshRSS/issues/8806 Regression from https://github.com/FreshRSS/FreshRSS/pull/8553 Apply same logic to onmouseup than onauxclick. --- p/scripts/main.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/p/scripts/main.js b/p/scripts/main.js index b483c92c3..0ac11d538 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1512,7 +1512,7 @@ function init_stream(stream) { return; } - const el = ev.target.closest('.item a.title'); + let el = ev.target.closest('.item a.title'); if (el) { if (ev.ctrlKey) { // Control+click if (context.auto_mark_site) { @@ -1521,6 +1521,14 @@ function init_stream(stream) { } else { el.parentElement.click(); // Normal click, just toggle article. } + return; + } + + if (context.auto_mark_site) { + el = ev.target.closest('.flux .link > a'); + if (el) { + mark_read(el.closest('.flux'), true, false); + } } };