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:
Anders Kaseorg
2018-08-04 02:39:30 -04:00
committed by Tim Abbott
parent f9bf414b58
commit 8472292906
4 changed files with 8 additions and 5 deletions

View File

@@ -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;