Ticket #1403 (closed bug: fixed)
Map move events are screwy
| Reported by: | euzuro | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.6 Release |
| Component: | Map | Version: | 2.5 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
In examples/lite.html's init() function, register the following two events so we can track the "movestart" and "moveend" events:
map.events.register("moveend", null, function() {
console.log("end");
});
map.events.register("movestart", null, function() {
console.log("start");
});
Now open lite.html in firefox and open the firebug console.
click and drag the map: notice that start and end both fire at the *end* of the drag
now click on one of the arrows in the panzoombar. start fires at beginning of pan, end at the end of it. beautiful.
now click and drag the map again: we get an end fired at the beginning of the drag, then the start and end as before at the end.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

