diff --git a/lib/OpenLayers/Control/Panel.js b/lib/OpenLayers/Control/Panel.js index 1e12642456..7d4410638e 100644 --- a/lib/OpenLayers/Control/Panel.js +++ b/lib/OpenLayers/Control/Panel.js @@ -129,6 +129,8 @@ OpenLayers.Control.Panel.prototype = // Give each control a panel_div which will be used later. // Access to this div is via the panel_div attribute of the // control added to the panel. + // Also, stop mousedowns and clicks, but don't stop mouseup, + // since they need to pass through. for (var i = 0; i < controls.length; i++) { var element = document.createElement("div"); var textNode = document.createTextNode(" "); @@ -137,8 +139,6 @@ OpenLayers.Control.Panel.prototype = this.onClick.bind(this, controls[i])); OpenLayers.Event.observe(controls[i].panel_div, "mousedown", OpenLayers.Event.stop.bindAsEventListener()); - OpenLayers.Event.observe(controls[i].panel_div, "mouseup", - OpenLayers.Event.stop.bindAsEventListener()); } if (this.map) { // map.addControl() has already been called on the panel