message_viewport.js: Add setter for last_movement_direction.

After migration to an ES6 module, `last_movement_direction` 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:33:00 -04:00
committed by Tim Abbott
parent 15192d4417
commit 6e4ae95994
3 changed files with 8 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ exports.initialize_kitchen_sink_stuff = function () {
}
}
message_viewport.last_movement_direction = delta;
message_viewport.set_last_movement_direction(delta);
}, 50);
message_viewport.message_pane.on('wheel', function (e) {