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:
@@ -94,9 +94,9 @@
|
||||
if (document.createEvent) { // Mozilla
|
||||
var evObj = document.createEvent('MouseEvents');
|
||||
evObj.initEvent('mousemove', true, false);
|
||||
map.eventsDiv.dispatchEvent(evObj);
|
||||
map.viewPortDiv.dispatchEvent(evObj);
|
||||
} else if(document.createEventObject) { // IE
|
||||
map.eventsDiv.fireEvent('onmousemove');
|
||||
map.viewPortDiv.fireEvent('onmousemove');
|
||||
}
|
||||
|
||||
t.eq(log.length, 1, "got one event");
|
||||
|
||||
Reference in New Issue
Block a user