aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-23 12:49:59 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-23 12:49:59 +0100
commit3b0e39a4c89e4c184f30c6131936dc63845d6a1f (patch)
tree53dc57ac52acbc59538e83af79e587c927c8f6d3
parent58365c1fc883f64e6a8c9b4cd70869013c179b69 (diff)
Don't want this to happen if zoom is actually 0.
-rw-r--r--web/js/map-OpenLayers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 7ddaae299..d73e2bfc8 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -246,7 +246,7 @@ $(function(){
fixmystreet.map.moveStart = { zoom: this.getZoom(), center: this.getCenter() };
});
fixmystreet.map.events.register("zoomend", null, function(e){
- if ( fixmystreet.map.moveStart && !fixmystreet.map.moveStart.zoom ) {
+ if ( fixmystreet.map.moveStart && !fixmystreet.map.moveStart.zoom && fixmystreet.map.moveStart.zoom !== 0 ) {
return true; // getZoom() on Firefox appears to return null at first?
}
if ( !fixmystreet.map.moveStart || !this.getCenter().equals(fixmystreet.map.moveStart.center) ) {