pointer: Move scroll suppression to message_scroll.js.

This is clearly a better home for it, since message_scroll.js is the
only place that reads it, and also lets us provide a clearer name for
the functionality.
This commit is contained in:
Tim Abbott
2020-06-17 23:29:08 -07:00
committed by Tim Abbott
parent 94e6cb9abd
commit 052dbb0716
4 changed files with 14 additions and 13 deletions

View File

@@ -6,13 +6,6 @@ exports.set_recenter_pointer_on_display = function (value) {
exports.recenter_pointer_on_display = value;
};
// Toggles re-centering the pointer in the window
// when All Messages is next clicked by the user
exports.suppress_scroll_pointer_update = false;
exports.set_suppress_scroll_pointer_update = function (value) {
exports.suppress_scroll_pointer_update = value;
};
exports.initialize = function initialize() {
$(document).on('message_selected.zulip', function (event) {
if (event.id === -1) {