Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

list_widget: Fix more elements not rendered on scrolling to bottom.

Aman Agrawal12e2b6637e12
diff --git a/web/src/list_widget.ts b/web/src/list_widget.ts
index 6e9ec34acdf..5698d47b212 100644
--- a/web/src/list_widget.ts
+++ b/web/src/list_widget.ts
@@ -271,6 +271,10 @@ export function create<Key, Item = Key>(
// We still keep `html` as `$scroll_container` to use
// its various methods as `HTMLElement`.
$scroll_listening_element = $(window);
+ } else {
+ // When `$scroll_container` is a specific element, we listen
+ // for scroll events on that element.
+ $scroll_listening_element = scroll_util.get_scroll_element(opts.$simplebar_container);
}
const meta: ListWidgetMeta<Key, Item> = {