From 3068c06e030e4b82e0a25961f24472628696512c Mon Sep 17 00:00:00 2001 From: eetnaviation Date: Fri, 10 May 2024 09:11:16 +0300 Subject: [PATCH] Testing locked scrolling for map --- client/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/index.html b/client/index.html index d765ca5..690ee80 100644 --- a/client/index.html +++ b/client/index.html @@ -59,6 +59,11 @@ map.addLayer(mapnik); map.setCenter(position, zoom); + map.getInteractions().forEach(function(interaction) { + if (interaction instanceof ol.interaction.MouseWheelZoom) { + interaction.setActive(false); + } + }, this); // Function to handle form submission document.getElementById('search-form').addEventListener('submit', function (event) {