mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user