فهرست منبع

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.
Alexandre Alapetite 1 هفته پیش
والد
کامیت
3a696929b7
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      p/scripts/main.js

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