mirror of https://github.com/zulip/zulip.git
Prevent glitching on scrolling.
This duplicate call to scrollTop is the source of our problems. (imported from commit 4374e0837d2af5eb20545449469fade7b5d47aca)
This commit is contained in:
parent
14daa08726
commit
93dbb21aff
|
@ -56,7 +56,6 @@ var message_groups = {
|
||||||
|
|
||||||
function scroll_to_selected() {
|
function scroll_to_selected() {
|
||||||
var viewport = $(window);
|
var viewport = $(window);
|
||||||
viewport.scrollTop(0);
|
|
||||||
viewport.scrollTop(selected_zephyr.offset().top - viewport.height()/1.5);
|
viewport.scrollTop(selected_zephyr.offset().top - viewport.height()/1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue