From 5520f927a922d5393d8f51c8f7b293016aa682a0 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 2 Jul 2014 03:10:40 +0100 Subject: [PATCH] tweak leaflet map settings - no 'bounce' at zoom limits for touch devices. may prevent unnecessary redraws on mobile, which may help performance in some cases --- code/boot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/boot.js b/code/boot.js index f2b12dbc..a435f95d 100644 --- a/code/boot.js +++ b/code/boot.js @@ -151,7 +151,8 @@ window.setupMap = function() { zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true, minZoom: 1, // zoomAnimation: false, - markerZoomAnimation: false + markerZoomAnimation: false, + bounceAtZoomLimits: false }); // add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements