Set the fallThrough property to 'true' by default. This seems to have no
adverse affect on the examples, is documented in the 2.6 release notes, and will allow for easier display of built-in browser tooltips for controls. r=elemoine (Closes #1303) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -284,9 +284,9 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
* APIProperty: fallThrough
|
||||
* {Boolean} Should OpenLayers allow events on the map to fall through to
|
||||
* other elements on the page, or should it swallow them? (#457)
|
||||
* Default is to swallow them.
|
||||
* Default is to fall through.
|
||||
*/
|
||||
fallThrough: false,
|
||||
fallThrough: true,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Map
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
}
|
||||
|
||||
function test_Handler_Drag_callbacks(t) {
|
||||
t.plan(34);
|
||||
t.plan(33);
|
||||
|
||||
var map = new OpenLayers.Map('map', {controls: []});
|
||||
|
||||
@@ -168,8 +168,7 @@
|
||||
evt.xy.y == testEvents.down.xy.y,
|
||||
"mousedown default action is disabled");
|
||||
} else {
|
||||
t.ok(evt.xy.x == testEvents.down.xy.x &&
|
||||
evt.xy.y == testEvents.down.xy.y,
|
||||
t.fail(
|
||||
"mousedown is prevented from falling to other elements");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user