Don't mark messages as read by visibility.

Trac #1428

(imported from commit b67e52d7434220e397ca20ffa49915de6633519c)
This commit is contained in:
Kevin Mehall
2013-07-02 14:33:00 -04:00
parent 318d66ed9e
commit 22c1a66da8
6 changed files with 45 additions and 101 deletions

View File

@@ -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();
}));