summaryrefslogtreecommitdiff
path: root/resources/views/modules/pedigree-map
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/pedigree-map')
-rw-r--r--resources/views/modules/pedigree-map/chart.phtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/views/modules/pedigree-map/chart.phtml b/resources/views/modules/pedigree-map/chart.phtml
index 7e53408e2e..2c9b65d60e 100644
--- a/resources/views/modules/pedigree-map/chart.phtml
+++ b/resources/views/modules/pedigree-map/chart.phtml
@@ -26,7 +26,7 @@ use Fisharebest\Webtrees\View;
const scrollOptions = {
behavior: "smooth",
- block: "start",
+ block: "nearest",
inline: "start"
};
@@ -46,7 +46,6 @@ use Fisharebest\Webtrees\View;
let resetCallback = function (event) {
event.preventDefault();
map.flyToBounds(markers.getBounds(), {padding: [50, 30], maxZoom: 15 });
- sidebar.firstElementChild.scrollIntoView(scrollOptions);
}
/**
@@ -89,7 +88,6 @@ use Fisharebest\Webtrees\View;
})
.on('popupclose', function () {
sidebar.childNodes.forEach(e => e.classList.remove('messagebox'));
- sidebar.firstElementChild.scrollIntoView(scrollOptions);
});
},
onEachFeature: function (feature, layer) {