scroll to selection
This commit is contained in:
parent
980bd8b79a
commit
c9363de0ab
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@
|
|||
if (element) {
|
||||
if ($selection.has(item.extend(id))) {
|
||||
Sortable.utils.select(element);
|
||||
element.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'nearest'
|
||||
});
|
||||
} else {
|
||||
Sortable.utils.deselect(element);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue