Mark messages as read as you scroll by them

(imported from commit 7e4595dcbfe900bde7f062e3fe9e2d53c71b6884)
This commit is contained in:
Leo Franchi 2013-03-14 14:56:15 -04:00
parent d3364eef5d
commit 95c9c6817f
1 changed files with 2 additions and 0 deletions

View File

@ -541,6 +541,8 @@ $(function () {
scroll_timer = setTimeout(scroll_finished, 100);
}
$(window).scroll(process_visible_unread_messages);
$(window).scroll($.throttle(50, function (e) {
if (!hotkeys.in_scroll_caused_by_keypress) {
// Only hide the recipient bar when mousewheel/trackpad scrolling,