diff options
Diffstat (limited to 'resources/views/modules/pedigree-map/chart.phtml')
| -rw-r--r-- | resources/views/modules/pedigree-map/chart.phtml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/views/modules/pedigree-map/chart.phtml b/resources/views/modules/pedigree-map/chart.phtml index 81d9065ae3..9e853f5c66 100644 --- a/resources/views/modules/pedigree-map/chart.phtml +++ b/resources/views/modules/pedigree-map/chart.phtml @@ -40,8 +40,11 @@ use Fisharebest\Webtrees\View; /** * Passed to resetControl to * perform necessary reset actions on map + * + * @param {Event} event */ - let resetCallback = function () { + let resetCallback = function (event) { + event.preventDefault(); map.flyToBounds(markers.getBounds(), {padding: [50, 30], maxZoom: 15 }); sidebar.firstElementChild.scrollIntoView(scrollOptions); } |
