OpenLayers OpenLayers

Ticket #1579: Box.js.patch

File Box.js.patch, 0.6 kB (added by openlayers, 7 months ago)

Patch to box handler

  • .

    old new  
    9191        if (xy.x < this.dragHandler.start.x) { 
    9292            this.zoomBox.style.left = xy.x+"px"; 
    9393        } 
     94        else{ 
     95            this.zoomBox.style.left = this.dragHandler.start.x+"px"; 
     96        } 
    9497        if (xy.y < this.dragHandler.start.y) { 
    9598            this.zoomBox.style.top = xy.y+"px"; 
    9699        } 
     100        else{ 
     101            this.zoomBox.style.top = this.dragHandler.start.y+"px"; 
     102        }         
    97103    }, 
    98104 
    99105    /**