Hi. I've found a problem in OpenLayers.Handler.Box; when you draw a box and move fast from negative to positive coordinates in firefox, the mouse cursor do not follow exactly the box.<br>The code that give problem is :<br>
<pre> if (xy.x < this.dragHandler.start.x) {<br> this.zoomBox.style.left = xy.x+"px";<br> }<br> if (xy.y < this.dragHandler.start.y) {<br> this.zoomBox.style.top = xy.y+"px";<br>
}</pre>if i move mouse very fast, firefox lost some events and the top/left value remain with old values also if i go in positive area. <br>A possible solution is :<br><pre> if (xy.x < this.dragHandler.start.x) {<br>
this.zoomBox.style.left = xy.x+"px";<br> }<br> else{<br> this.zoomBox.style.left = this.dragHandler.start.x+"px";<br> }<br> if (xy.y < this.dragHandler.start.y) {<br>
this.zoomBox.style.top = xy.y+"px";<br> }<br> else{<br> this.zoomBox.style.top = this.dragHandler.start.y+"px";<br> }</pre><br>Andrea Di Nora.<br>