Changeset 1316
- Timestamp:
- 08/19/06 11:57:14 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/MouseToolbar.js
r1315 r1316 36 36 OpenLayers.Control.prototype.draw.apply(this, arguments); 37 37 this.buttons = new Object(); 38 this.map.events.register( "click", this, this.defaultClick ); 38 39 this.map.events.register( "dblclick", this, this.defaultDblClick ); 39 40 this.map.events.register( "mousedown", this, this.defaultMouseDown ); … … 146 147 this.measureBox.style.width="4px"; 147 148 this.measureBox.style.height="4px"; 149 this.measureBox.style.fontSize = "1px"; 148 150 this.measureBox.style.backgroundColor="red"; 149 151 this.measureBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; … … 268 270 this.defaultMouseUp(evt); 269 271 } 272 }, 273 defaultClick: function (evt) { 274 if (this.performedDrag) { 275 this.performedDrag = false; 276 return false; 277 } 270 278 } 271 279 });
