[OpenLayers-Trac] [OpenLayers] #1579: Draw bug in OpenLayers.Handler.Box with firefox

OpenLayers trac at openlayers.org
Mon Jun 9 04:26:35 EDT 2008


#1579: Draw bug in OpenLayers.Handler.Box with firefox
--------------------------+-------------------------------------------------
 Reporter:  openlayers    |       Owner:     
     Type:  bug           |      Status:  new
 Priority:  minor         |   Milestone:     
Component:  Handler.Box   |     Version:  2.6
 Keywords:  Draw firefox  |       State:     
--------------------------+-------------------------------------------------
 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.
 The code that give problem is :

        if (xy.x < this.dragHandler.start.x) {
            this.zoomBox.style.left = xy.x+"px";
        }
        if (xy.y < this.dragHandler.start.y) {
            this.zoomBox.style.top = xy.y+"px";

        }

 if you move the mouse very fast, firefox lose some events and the top/left
 value remain with old values also if i go in positive area.

 Patch file attached.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1579>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list