Better scrolling for mention list

This commit is contained in:
Jeremy Zhang 2018-03-19 08:53:02 +00:00
parent b4ee57f3ec
commit 5dc1c01db4

View File

@ -1540,7 +1540,7 @@
$(choices.get(index - 1)).addClass("selected"); $(choices.get(index - 1)).addClass("selected");
} }
} }
$("#mention-picker .mention-choice.selected")[0].scrollIntoView(); $("#mention-picker .mention-choice.selected")[0].scrollIntoView({behavior: "instant", block: "center", inline: "center"});
return; return;
} }
if (event.which == 13) { if (event.which == 13) {