scroll to selection

This commit is contained in:
vcoppe
2024-06-03 16:06:14 +02:00
parent 980bd8b79a
commit c9363de0ab

View File

@@ -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);
}