Scroll page into view when selected item is outside view
This commit is contained in:
parent
ea5f0dbe26
commit
b94611b160
|
@ -507,6 +507,10 @@ function editor(root, inputData, options) {
|
||||||
trigger('change')
|
trigger('change')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_.defer(() => {
|
||||||
|
$('.list-item.selected')[0].scrollIntoView({behavior: "smooth", block: "nearest"})
|
||||||
|
})
|
||||||
|
|
||||||
cursor.resetLastMove()
|
cursor.resetLastMove()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user