Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
This commit is contained in:
@@ -252,7 +252,7 @@
|
||||
t.ok(evt.xy.x == testEvents.done.xy.x &&
|
||||
evt.xy.y == testEvents.done.xy.y,
|
||||
"mouseout calls Util.mouseLeft with the correct event");
|
||||
t.eq(element.id, map.eventsDiv.id,
|
||||
t.eq(element.id, map.viewPortDiv.id,
|
||||
"mouseout calls Util.mouseLeft with the correct element");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user