mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
pointer.js: Add setter for suppress_scroll_pointer_update.
After migration to an ES6 module, `suppress_scroll_pointer_update` would no longer be mutable from outside the module. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
f9bf414b58
commit
8472292906
@@ -13,6 +13,9 @@ exports.set_recenter_pointer_on_display = function (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.furthest_read = -1;
|
||||
exports.set_furthest_read = function (value) {
|
||||
exports.furthest_read = value;
|
||||
|
||||
Reference in New Issue
Block a user