mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 15:31:20 +00:00
Don't mark messages as read by visibility.
Trac #1428 (imported from commit b67e52d7434220e397ca20ffa49915de6633519c)
This commit is contained in:
@@ -822,11 +822,6 @@ $(function () {
|
||||
} else if (!have_scrolled_away_from_top) {
|
||||
have_scrolled_away_from_top = true;
|
||||
}
|
||||
// When the window scrolls, it may cause some messages to
|
||||
// enter the screen and become read. Calling
|
||||
// process_visible_unread_messages will update necessary
|
||||
// data structures and DOM elements.
|
||||
setTimeout(process_visible_unread_messages, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -836,10 +831,6 @@ $(function () {
|
||||
scroll_timer = setTimeout(scroll_finished, 100);
|
||||
}
|
||||
|
||||
$(window).scroll(function () {
|
||||
process_visible_unread_messages();
|
||||
});
|
||||
|
||||
$(window).scroll($.throttle(50, function (e) {
|
||||
scroll_finish();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user