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:
Steve Howell 2018-03-08 14:47:52 -05:00 committed by Tim Abbott
parent b8f39b2ff1
commit 571773564f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ exports.scroll_finished = function () {
floating_recipient_bar.update();
if (message_viewport.scrollTop() === 0) {
if (message_viewport.at_top()) {
message_fetch.load_more_messages({
msg_list: current_msg_list,
show_loading: exports.show_loading_more_messages_indicator,