summaryrefslogtreecommitdiff
path: root/resources/views/modules/pedigree-map/chart.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-11-25 14:54:48 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-11-25 14:54:48 +0000
commitaeea31bd8bfebe3bb14b66dc16d5c7d1393c0bb2 (patch)
tree1f08ba6fd0748d0ca2cd95efd12c923f92bab269 /resources/views/modules/pedigree-map/chart.phtml
parenta86e703ed663b2c47018b4a6e2d3204a39104e79 (diff)
downloadwebtrees-aeea31bd8bfebe3bb14b66dc16d5c7d1393c0bb2.tar.gz
webtrees-aeea31bd8bfebe3bb14b66dc16d5c7d1393c0bb2.tar.bz2
webtrees-aeea31bd8bfebe3bb14b66dc16d5c7d1393c0bb2.zip
Merge: #4316 - remove unnecessary scrolling from map sidebars
Diffstat (limited to 'resources/views/modules/pedigree-map/chart.phtml')
-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) {