From 1f9cb14069a775fda30d648e44d8d4ad523ea573 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 24 Aug 2006 14:52:39 +0000 Subject: [PATCH] When you click and don't drag, we zoom in, but we want to set performedDrag, since that's how we ensure that we don't fire click. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/MouseDefaults.js | 1 + lib/OpenLayers/Control/MouseToolbar.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/OpenLayers/Control/MouseDefaults.js b/lib/OpenLayers/Control/MouseDefaults.js index f9ce0fbb61..d43f3fb45b 100644 --- a/lib/OpenLayers/Control/MouseDefaults.js +++ b/lib/OpenLayers/Control/MouseDefaults.js @@ -81,6 +81,7 @@ OpenLayers.Control.MouseDefaults.prototype = this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; + this.measureBox.style.fontSize = "1px"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } diff --git a/lib/OpenLayers/Control/MouseToolbar.js b/lib/OpenLayers/Control/MouseToolbar.js index c17d8272b4..66150c91a7 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -128,8 +128,10 @@ OpenLayers.Control.MouseToolbar.prototype = this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; + this.zoomBox.style.fontSize = "1px"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); + this.performedDrag = true; break; case "measure": var distance = "";