mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Delete code that repositioned window on last message.
I believe we'll get this for free with the new version of select_zephyr and our bottom_whitespace div. (imported from commit 0d6c3e4d0a70e06b9b2f6e5830b3a9650e44441a)
This commit is contained in:
parent
59a00cb1ab
commit
c7175f5f43
@ -38,14 +38,6 @@ function process_hotkey(code) {
|
||||
if (next_zephyr.length !== 0) {
|
||||
select_zephyr(next_zephyr, true);
|
||||
}
|
||||
if ((next_zephyr.length === 0) && (code === 40)) {
|
||||
// At the last zephyr, scroll to the bottom so we have
|
||||
// lots of nice whitespace for new zephyrs coming in.
|
||||
//
|
||||
// FIXME: this doesn't work for End because get_last_visible()
|
||||
// always returns a zephyr.
|
||||
$("#main_div").scrollTop($("#main_div").prop("scrollHeight"));
|
||||
}
|
||||
return process_hotkey;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user