mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
message_list_view: Minor optimization.
This commit is contained in:
@@ -1160,9 +1160,7 @@ export class MessageListView {
|
|||||||
|
|
||||||
set_message_offset(offset) {
|
set_message_offset(offset) {
|
||||||
const $msg = this.selected_row();
|
const $msg = this.selected_row();
|
||||||
message_viewport.scrollTop(
|
message_viewport.scrollTop($msg.offset().top - offset);
|
||||||
message_viewport.scrollTop() + $msg.get_offset_to_window().top - offset,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rerender_with_target_scrolltop(selected_row, target_offset) {
|
rerender_with_target_scrolltop(selected_row, target_offset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user