From 9266cf0febbe0f3a86f621784b0b4dd0ffd0040c Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Wed, 1 Feb 2017 10:31:32 +0100 Subject: [PATCH] Disable scrollwheel zoom on map --- app/assets/javascripts/carte/carte.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/carte/carte.js b/app/assets/javascripts/carte/carte.js index b7ec0ea4b..af6ac5cf4 100644 --- a/app/assets/javascripts/carte/carte.js +++ b/app/assets/javascripts/carte/carte.js @@ -11,7 +11,8 @@ function initCarto() { map = L.map("map", { center: new L.LatLng(position.lat, position.lon), zoom: position.zoom, - layers: [OSM] + layers: [OSM], + scrollWheelZoom: false }); icon = L.icon({ @@ -159,4 +160,4 @@ function add_event_search_address() { if (e.keyCode == 13) get_address_point($(this).val()); }); -} \ No newline at end of file +}