mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
pointer: Move planned scroll logic to navigate.js.
Like the last commit, this is clearly a better home for this state, since all reads to the data object are in navigate.js already.
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
// See https://zulip.readthedocs.io/en/latest/subsystems/pointer.html for notes on
|
||||
// how this system is designed.
|
||||
|
||||
exports.recenter_pointer_on_display = false;
|
||||
exports.set_recenter_pointer_on_display = function (value) {
|
||||
exports.recenter_pointer_on_display = value;
|
||||
};
|
||||
|
||||
exports.initialize = function initialize() {
|
||||
$(document).on('message_selected.zulip', function (event) {
|
||||
if (event.id === -1) {
|
||||
|
||||
Reference in New Issue
Block a user