From dda36d1c934aeb110715412792e8d498f8067ca9 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 15 Sep 2020 11:15:17 +0530 Subject: [PATCH] recent_topics: Don't mark messages as read on scrolling. throttled mousewheel handler marks messages as read in the message_list regardless of if the message_list is visible or not. We don't trigger it if recent_topics is visible. --- static/js/ui_init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ui_init.js b/static/js/ui_init.js index 5e678fd0d9..f4782399c7 100644 --- a/static/js/ui_init.js +++ b/static/js/ui_init.js @@ -91,7 +91,7 @@ exports.initialize_kitchen_sink_stuff = function () { message_viewport.message_pane.on("wheel", (e) => { const delta = e.originalEvent.deltaY; - if (!overlays.is_active()) { + if (!overlays.is_active() && !recent_topics.is_visible()) { // In the message view, we use a throttled mousewheel handler. throttled_mousewheelhandler(e, delta); }