mirror of https://github.com/zulip/zulip.git
Don't widen bottom whitespace on down-arrow.
We had a feature that if you hit the down arrow key when you were at the last message, it would recenter you. Waseem has bought into temporarily removing this feature. Justifications: 1) We can always put it back. 2) Autoscrolling makes it less relevant. 3) The feature complicated the code a bit. 4) The feature worked different for End than down arrow, due to a FIXME. 5) It might have been a misfeature for users that want more control over their own scrolling. 6) You can achieve the same essential effect by using PgDn or space. (imported from commit fa6874bb5d29d7057bb1601f0b6d577bac1272c7)
This commit is contained in:
parent
5dcd66b507
commit
4ad78ade68
|
@ -23,16 +23,6 @@ exports.down = function () {
|
|||
if (next_row.length !== 0) {
|
||||
go_to_row(next_row);
|
||||
}
|
||||
if ((next_row.length === 0)) {
|
||||
// At the last message, scroll to the bottom so we have
|
||||
// lots of nice whitespace for new messages coming in.
|
||||
//
|
||||
// FIXME: this doesn't work for End because rows.last_visible()
|
||||
// always returns a message.
|
||||
var current_msg_table = rows.get_table(current_msg_list.table_name);
|
||||
viewport.scrollTop(current_msg_table.outerHeight(true) - viewport.height() * 0.1);
|
||||
mark_current_list_as_read();
|
||||
}
|
||||
};
|
||||
|
||||
exports.to_home = function () {
|
||||
|
@ -71,4 +61,4 @@ exports.page_down = function () {
|
|||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue