mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	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:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user