Remove deferred installation of scroll handler.

This is no longer required, now that we're no longer scrolling the
main body of the page.

(imported from commit c2aa0d403c8fd0679b3110fe8e7684d46a7557fa)
This commit is contained in:
Tim Abbott
2014-01-30 18:00:33 -05:00
parent 70df0b933c
commit 6e5e5596fd
2 changed files with 5 additions and 44 deletions

View File

@@ -1810,18 +1810,16 @@ function scroll_finish() {
scroll_timer = setTimeout(scroll_finished, 100);
}
exports.register_scroll_handler = function () {
viewport.message_pane.scroll($.throttle(50, function (e) {
process_visible_unread_messages();
scroll_finish();
}));
};
// Save the compose content cursor position and restore when we
// shift-tab back in (see hotkey.js).
var saved_compose_cursor = 0;
$(function () {
viewport.message_pane.scroll($.throttle(50, function (e) {
process_visible_unread_messages();
scroll_finish();
}));
$('#new_message_content').blur(function () {
saved_compose_cursor = $(this).caret().start;
});