mirror of https://github.com/zulip/zulip.git
minor: Use message_viewport.at_top() in scroll_finished.
This effectively changes a condition from `=== 0` to `<= 0`, but that probably doesn't matter (and would only help). More importantly, it just makes the code more consistent.
This commit is contained in:
parent
b8f39b2ff1
commit
571773564f
|
@ -40,7 +40,7 @@ exports.scroll_finished = function () {
|
||||||
|
|
||||||
floating_recipient_bar.update();
|
floating_recipient_bar.update();
|
||||||
|
|
||||||
if (message_viewport.scrollTop() === 0) {
|
if (message_viewport.at_top()) {
|
||||||
message_fetch.load_more_messages({
|
message_fetch.load_more_messages({
|
||||||
msg_list: current_msg_list,
|
msg_list: current_msg_list,
|
||||||
show_loading: exports.show_loading_more_messages_indicator,
|
show_loading: exports.show_loading_more_messages_indicator,
|
||||||
|
|
Loading…
Reference in New Issue