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:
Tim Abbott
2020-06-17 23:35:18 -07:00
committed by Tim Abbott
parent 052dbb0716
commit 5321e8792d
3 changed files with 14 additions and 13 deletions

View File

@@ -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) {