mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
css: Scroll on html instead of .app.
This commit is contained in:
@@ -128,7 +128,8 @@ export function maybe_scroll_up_selected_message() {
|
||||
return;
|
||||
}
|
||||
|
||||
const cover = $selected_row.offset().top + $selected_row.height() - $("#compose").offset().top;
|
||||
const cover =
|
||||
$selected_row.get_offset_to_window().bottom - $("#compose").get_offset_to_window().top;
|
||||
if (cover > 0) {
|
||||
message_viewport.user_initiated_animate_scroll(cover + 20);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user