Ticket #1579 (closed bug: fixed)
Draw bug in OpenLayers.Handler.Box with firefox
| Reported by: | openlayers | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.7 Release |
| Component: | Handler.Box | Version: | 2.6 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

