mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 08:42:31 +00:00
scroll to selection
This commit is contained in:
@@ -163,6 +163,10 @@
|
|||||||
if (element) {
|
if (element) {
|
||||||
if ($selection.has(item.extend(id))) {
|
if ($selection.has(item.extend(id))) {
|
||||||
Sortable.utils.select(element);
|
Sortable.utils.select(element);
|
||||||
|
element.scrollIntoView({
|
||||||
|
behavior: 'smooth',
|
||||||
|
block: 'nearest'
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
Sortable.utils.deselect(element);
|
Sortable.utils.deselect(element);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user