Don't put the box under the cursor until the mouse moved, prevent errors with the GetFeature and click events. I also removed the no longer valid (and failing) tests. r=elemoine, (Closes #2993)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -99,11 +99,6 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
|
||||
this.map.eventsDiv.appendChild(this.zoomBox);
|
||||
|
||||
var offset = this.getBoxOffsets();
|
||||
var pos = this.dragHandler.start;
|
||||
this.zoomBox.style.left = (pos.x - offset.left) + "px";
|
||||
this.zoomBox.style.top = (pos.y - offset.top) + "px";
|
||||
|
||||
OpenLayers.Element.addClass(
|
||||
this.map.eventsDiv, "olDrawBox"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user