utility.js: replace Utility.scroll_to with Element.scrollIntoView.
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView https://caniuse.com/#feat=scrollintoview
This commit is contained in:
@@ -145,7 +145,7 @@ let Note = {
|
||||
Note.Body.show(note_id);
|
||||
$(".note-box-highlighted").removeClass("note-box-highlighted");
|
||||
$note_box.addClass("note-box-highlighted");
|
||||
Utility.scroll_to($note_box);
|
||||
$note_box[0].scrollIntoView(false);
|
||||
},
|
||||
|
||||
resize_inner_border: function($note_box) {
|
||||
|
||||
Reference in New Issue
Block a user