mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user